mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 05:56:31 +00:00
typefind: Reset segment when deactivating pull mode or not running in pull mode
We use the segment format to detect if we run the streaming thread or not. Without resetting we might believe we do so, although we only did in the past and are now running in e.g. push mode. https://bugzilla.gnome.org/show_bug.cgi?id=745073
This commit is contained in:
parent
a7797d30a8
commit
53e8e7da75
1 changed files with 2 additions and 0 deletions
|
@ -1179,10 +1179,12 @@ gst_type_find_element_activate_sink_mode (GstPad * pad, GstObject * parent,
|
|||
typefind->offset = 0;
|
||||
res = TRUE;
|
||||
} else {
|
||||
gst_segment_init (&typefind->segment, GST_FORMAT_UNDEFINED);
|
||||
res = gst_pad_stop_task (pad);
|
||||
}
|
||||
break;
|
||||
case GST_PAD_MODE_PUSH:
|
||||
gst_segment_init (&typefind->segment, GST_FORMAT_UNDEFINED);
|
||||
if (active)
|
||||
start_typefinding (typefind);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue