From 23e6096d0bd3ed0e614990657f8c0b8df3bd1854 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 4 Nov 2018 12:45:57 +0200 Subject: [PATCH] typefind: Always forward RECONFIGURE events upstream Based on a patch by Vincent Penquerc'h Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/issues/67 --- plugins/elements/gsttypefindelement.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/elements/gsttypefindelement.c b/plugins/elements/gsttypefindelement.c index cd88fec3b4..55512f3b0c 100644 --- a/plugins/elements/gsttypefindelement.c +++ b/plugins/elements/gsttypefindelement.c @@ -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");