mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
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>
This commit is contained in:
parent
7e0ea232d0
commit
b26785d9f9
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue