From a2890e831bda3aca80dcf76a0bf76b4c2d5c3c10 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Sat, 7 Jun 2014 07:13:59 +0200 Subject: [PATCH] mpegtsdemux: Fix sticky event handling When we receive sticky events from upstream, always return TRUE. Fixes the issue where we receive custom sticky events (such as "uri") and no pads are created yet. --- gst/mpegtsdemux/mpegtsbase.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index 101f999..13b99a5 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -1095,6 +1095,10 @@ mpegts_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) res = GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, event); } + /* Always return TRUE for sticky events */ + if (GST_EVENT_IS_STICKY (event)) + res = TRUE; + return res; } -- 2.7.4