typefind: Always forward RECONFIGURE events upstream

Based on a patch by Vincent Penquerc'h <vincent.penquerch@collabora.co.uk>

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/67
This commit is contained in:
Sebastian Dröge 2018-11-04 12:45:57 +02:00
parent 8250b8d81a
commit 23e6096d0b

View file

@ -557,6 +557,11 @@ gst_type_find_element_src_event (GstPad * pad, GstObject * parent,
GstTypeFindElement *typefind = GST_TYPE_FIND_ELEMENT (parent);
gboolean result;
/* Always forward RECONFIGURE events upstream */
if (GST_EVENT_TYPE (event) == GST_EVENT_RECONFIGURE) {
return gst_pad_push_event (typefind->sink, event);
}
if (typefind->mode != MODE_NORMAL) {
/* need to do more? */
GST_LOG_OBJECT (typefind, "Still typefinding. Not passing event upstream");