diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2010-06-23 12:15:13 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-06-23 21:40:50 +0200 |
commit | b26785d9f92587fb99d2418c6b8e1c7ba2c8d849 (patch) | |
tree | cf201292354c7dc6bc8e1696db1673ceb1f9b9b3 | |
parent | 7e0ea232d0bb04d31b991ceac9ad5f016d0cdea5 (diff) |
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 <m.grzeschik@pengutronix.de>
-rw-r--r-- | gst/avi/gstavidemux.c | 1 |
1 files changed, 1 insertions, 0 deletions
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: |