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.
This commit is contained in:
Edward Hervey 2014-06-07 07:13:59 +02:00
parent be28578942
commit a2890e831b

View file

@ -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;
}