diff options
author | Anton Novikov <random.plant@gmail.com> | 2012-05-22 12:35:04 +0400 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-05-23 10:05:41 +0200 |
commit | eba7494ab03f8a8e981e7b420071e0167ab41df8 (patch) | |
tree | 28d0b5d5503219d940f784a53bd49b9ad80422a6 /gst/icydemux | |
parent | 6c31088adc2b8dcb7da3fb08c5ceb7977fcd9ae7 (diff) | |
download | gstreamer-plugins-good-eba7494ab03f8a8e981e7b420071e0167ab41df8.tar.gz |
icydemux: warning if setting srcpad caps fails
Diffstat (limited to 'gst/icydemux')
-rw-r--r-- | gst/icydemux/gsticydemux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/icydemux/gsticydemux.c b/gst/icydemux/gsticydemux.c index d92de7c4c..426552926 100644 --- a/gst/icydemux/gsticydemux.c +++ b/gst/icydemux/gsticydemux.c @@ -233,8 +233,10 @@ gst_icydemux_add_srcpad (GstICYDemux * icydemux, GstCaps * new_caps) 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); + if (icydemux->src_caps) { + if (!gst_pad_set_caps (icydemux->srcpad, icydemux->src_caps)) + GST_WARNING_OBJECT (icydemux, "Failed to set caps on src pad"); + } GST_DEBUG_OBJECT (icydemux, "Adding src pad with caps %" GST_PTR_FORMAT, icydemux->src_caps); |