Commit 23e6096d authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

typefind: Always forward RECONFIGURE events upstream

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

Fixes #67
parent 8250b8d8
......@@ -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");
......
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