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:
Edward Hervey 2011-12-30 18:18:10 +01:00
parent a646d8d1e2
commit f1aea6f06d

View file

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