mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 16:26:39 +00:00
mpegtsbase: Swallow incoming caps event
Otherwise we end up asking subclasses to push the event forward, which will fail since no pads are created yet.
This commit is contained in:
parent
a646d8d1e2
commit
f1aea6f06d
1 changed files with 6 additions and 0 deletions
|
@ -1209,6 +1209,10 @@ mpegts_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
res = gst_mpegts_base_handle_eos (base);
|
||||
gst_event_unref (event);
|
||||
break;
|
||||
case GST_EVENT_CAPS:
|
||||
/* FIXME, do something */
|
||||
gst_event_unref (event);
|
||||
break;
|
||||
case GST_EVENT_FLUSH_START:
|
||||
mpegts_packetizer_flush (base->packetizer);
|
||||
mpegts_base_flush (base);
|
||||
|
@ -1224,6 +1228,8 @@ mpegts_base_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
res = GST_MPEGTS_BASE_GET_CLASS (base)->push_event (base, event);
|
||||
gst_event_unref (event);
|
||||
}
|
||||
|
||||
GST_DEBUG ("Returning %d", res);
|
||||
return res;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue