summaryrefslogtreecommitdiff
path: root/gst/icydemux
diff options
context:
space:
mode:
authorAnton Novikov <random.plant@gmail.com>2012-05-22 12:35:04 +0400
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-05-23 10:05:41 +0200
commiteba7494ab03f8a8e981e7b420071e0167ab41df8 (patch)
tree28d0b5d5503219d940f784a53bd49b9ad80422a6 /gst/icydemux
parent6c31088adc2b8dcb7da3fb08c5ceb7977fcd9ae7 (diff)
downloadgstreamer-plugins-good-eba7494ab03f8a8e981e7b420071e0167ab41df8.tar.gz
icydemux: warning if setting srcpad caps fails
Diffstat (limited to 'gst/icydemux')
-rw-r--r--gst/icydemux/gsticydemux.c6
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);