summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-10-06 22:56:18 +0000
committerLarsAC <LarsAC@e10066b5-e1e2-0310-b819-94efdf66514b>2005-10-06 22:56:18 +0000
commit9d98442daf037b712b7b1da7987877f6c3860882 (patch)
tree4a945189a8779d51414b4216ee854e86e5d650de
parent79da848c1a7df024f888a2e96cdd99fde6196f10 (diff)
downloadvdr-plugin-muggle-9d98442daf037b712b7b1da7987877f6c3860882.tar.gz
vdr-plugin-muggle-9d98442daf037b712b7b1da7987877f6c3860882.tar.bz2
Switch images according to setup option
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/trunk/muggle-plugin@852 e10066b5-e1e2-0310-b819-94efdf66514b
-rw-r--r--vdr_player.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/vdr_player.c b/vdr_player.c
index eb3750d..94b1f74 100644
--- a/vdr_player.c
+++ b/vdr_player.c
@@ -488,7 +488,9 @@ mgPCMPlayer::Action (void)
break;
case msDecode:
{
- if( m_image_delaycounter % 1000 == 0 )
+ int secs = SecondsToFrames( m_index) ;
+
+ if( secs % the_setup.ImageShowDuration == 0 )
{ // all n decoding steps
m_current_image = m_img_provider->getImagePath( );
@@ -566,10 +568,9 @@ mgPCMPlayer::Action (void)
static unsigned int oldrate = 0;
if (oldrate != pcm->samplerate)
{
- std::
- cout << "mgPCMPlayer::Action: new input sample rate "
- << pcm->samplerate << std::endl << std::flush;
- oldrate = pcm->samplerate;
+ std::cout << "mgPCMPlayer::Action: new input sample rate "
+ << pcm->samplerate << std::endl << std::flush;
+ oldrate = pcm->samplerate;
}
}
#endif