mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
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:
parent
8250b8d81a
commit
23e6096d0b
1 changed files with 5 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue