summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-13 15:56:47 +0100
committerMark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>2012-01-13 15:59:06 +0100
commit712188f26b5d7413ef2a15e8e067301550b4f4f9 (patch)
tree4e87157d3ee5a1a13bceb98d20d003e49cb72ee0 /gst
parent96030c3b09b02188c214eba841bfcd0e2e7eeb64 (diff)
asfdemux: set caps on src pad before adding it
Diffstat (limited to 'gst')
-rw-r--r--gst/asfdemux/gstasfdemux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c
index 54342832..6f110c8d 100644
--- a/gst/asfdemux/gstasfdemux.c
+++ b/gst/asfdemux/gstasfdemux.c
@@ -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;
}
}