asfdemux: set caps on src pad before adding it

This commit is contained in:
Mark Nauwelaerts 2012-01-13 15:56:47 +01:00
parent 96030c3b09
commit 712188f26b

View file

@ -2319,8 +2319,8 @@ gst_asf_demux_activate_stream (GstASFDemux * demux, AsfStream * stream)
GST_INFO_OBJECT (demux, "Activating stream %2u, pad %s, caps %"
GST_PTR_FORMAT, stream->id, GST_PAD_NAME (stream->pad), stream->caps);
gst_pad_set_active (stream->pad, TRUE);
gst_element_add_pad (GST_ELEMENT_CAST (demux), stream->pad);
gst_pad_set_caps (stream->pad, stream->caps);
gst_element_add_pad (GST_ELEMENT_CAST (demux), stream->pad);
stream->active = TRUE;
}
}