From b26785d9f92587fb99d2418c6b8e1c7ba2c8d849 Mon Sep 17 00:00:00 2001 From: Michael Grzeschik Date: Wed, 23 Jun 2010 12:15:13 +0200 Subject: [PATCH] reset the have_index flag at transition PAUSED_TO_READY If we restart the Stream in the case of doing a transition from PAUSED_TO_READY and back with READY_TO_PAUSED aso. the duration of the video will get calculated even if we have a avi header with that information. Signed-off-by: Michael Grzeschik --- gst/avi/gstavidemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/avi/gstavidemux.c b/gst/avi/gstavidemux.c index e7fe2c381..b73e87f21 100644 --- a/gst/avi/gstavidemux.c +++ b/gst/avi/gstavidemux.c @@ -5346,6 +5346,7 @@ gst_avi_demux_change_state (GstElement * element, GstStateChange transition) switch (transition) { case GST_STATE_CHANGE_PAUSED_TO_READY: + avi->have_index = FALSE; gst_avi_demux_reset (avi); break; default: -- GitLab