* mp4: use ES_OUT_SET_NEXT_DISPLAY_TIME when doing a seek (avoid late
authorLaurent Aimar <fenrir@videolan.org>
Sun, 9 Oct 2005 11:09:06 +0000 (11:09 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 9 Oct 2005 11:09:06 +0000 (11:09 +0000)
 frame).

modules/demux/mp4/mp4.c

index 71190e2..cfa74dd 100644 (file)
@@ -2007,7 +2007,11 @@ static int MP4_TrackSeek( demux_t *p_demux, mp4_track_t *p_track,
         VLC_SUCCESS )
     {
         p_track->b_selected = VLC_TRUE;
+
+        es_out_Control( p_demux->out, ES_OUT_SET_NEXT_DISPLAY_TIME,
+                        p_track->p_es, i_start );
     }
+
     return( p_track->b_selected ? VLC_SUCCESS : VLC_EGENERIC );
 }