gst_pad_use_fixed_caps (pad);
gst_pad_set_active (pad, TRUE);
- gst_element_add_pad (GST_ELEMENT_CAST (demux), pad);
/* prepare and send stream-start */
if (!demux->have_group_id) {
if (demux->have_group_id)
gst_event_set_group_id (event, demux->group_id);
- gst_pad_push_event (pad, event);
+ gst_pad_store_sticky_event (pad, event);
g_free (stream_id);
/* take the mime type, convert it to the caps name */
caps = gst_caps_from_string (capsname);
GST_DEBUG_OBJECT (demux, "caps for pad: %s", capsname);
gst_pad_set_caps (pad, caps);
+ gst_element_add_pad (GST_ELEMENT_CAST (demux), pad);
gst_caps_unref (caps);
if (created) {