diff options
author | Anton Novikov <random.plant@gmail.com> | 2012-05-22 12:35:29 +0400 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-05-23 10:04:09 +0200 |
commit | 6c31088adc2b8dcb7da3fb08c5ceb7977fcd9ae7 (patch) | |
tree | 02eeca08ee23d51b508a782f96dc6dc4be6ca371 /gst/icydemux | |
parent | b63a6e2cbc4099af91f7cba1a34641bf1d5c937a (diff) | |
download | gstreamer-plugins-good-6c31088adc2b8dcb7da3fb08c5ceb7977fcd9ae7.tar.gz |
icydemux: activate srcpad before setting caps
Before gst_pad_set_active() is called, the pad has
FLUSHING flag set, so setting the caps fails
Diffstat (limited to 'gst/icydemux')
-rw-r--r-- | gst/icydemux/gsticydemux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/icydemux/gsticydemux.c b/gst/icydemux/gsticydemux.c index 497074503..d92de7c4c 100644 --- a/gst/icydemux/gsticydemux.c +++ b/gst/icydemux/gsticydemux.c @@ -231,6 +231,7 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps) g_return_val_if_fail (icydemux->srcpad != NULL, FALSE); gst_pad_use_fixed_caps (icydemux->srcpad); + gst_pad_set_active (icydemux->srcpad, TRUE); if (icydemux->src_caps) gst_pad_set_caps (icydemux->srcpad, icydemux->src_caps); @@ -238,7 +239,6 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps) GST_DEBUG_OBJECT (icydemux, "Adding src pad with caps %" GST_PTR_FORMAT, icydemux->src_caps); - gst_pad_set_active (icydemux->srcpad, TRUE); if (!(gst_element_add_pad (GST_ELEMENT (icydemux), icydemux->srcpad))) return FALSE; gst_element_no_more_pads (GST_ELEMENT (icydemux)); |