]> git.sesse.net Git - vlc/commitdiff
Fixed an assert with still frame in dvdnav.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 21 Feb 2010 22:27:00 +0000 (23:27 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 21 Feb 2010 22:32:48 +0000 (23:32 +0100)
We can come out of still mode by user actions, and so
the timer need to be reset in DVDNAV_BLOCK_OK.

modules/access/dvdnav.c

index c4bb1c61db305b480f0a8c7daaf3a0d97822546e..b02ee9faedec8e38118539103c719e019e80fee4 100644 (file)
@@ -605,6 +605,7 @@ static int Demux( demux_t *p_demux )
     {
     case DVDNAV_BLOCK_OK:   /* mpeg block */
         vlc_mutex_lock( &p_sys->still.lock );
+        vlc_timer_schedule( p_sys->still.timer, false, 0, 0 );
         p_sys->still.b_enabled = false;
         vlc_mutex_unlock( &p_sys->still.lock );
         if( p_sys->b_reset_pcr )