Commit b26785d9 authored by Michael Grzeschik's avatar Michael Grzeschik Committed by Sebastian Dröge
Browse files

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: default avatarMichael Grzeschik <m.grzeschik@pengutronix.de>
parent 7e0ea232
...@@ -5346,6 +5346,7 @@ gst_avi_demux_change_state (GstElement * element, GstStateChange transition) ...@@ -5346,6 +5346,7 @@ gst_avi_demux_change_state (GstElement * element, GstStateChange transition)
switch (transition) { switch (transition) {
case GST_STATE_CHANGE_PAUSED_TO_READY: case GST_STATE_CHANGE_PAUSED_TO_READY:
avi->have_index = FALSE;
gst_avi_demux_reset (avi); gst_avi_demux_reset (avi);
break; break;
default: default:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment