projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c31088
)
icydemux: warning if setting srcpad caps fails
author
Anton Novikov
<random.plant@gmail.com>
Tue, 22 May 2012 08:35:04 +0000
(12:35 +0400)
committer
Sebastian Dröge
<sebastian.droege@collabora.co.uk>
Wed, 23 May 2012 08:05:41 +0000
(10:05 +0200)
gst/icydemux/gsticydemux.c
patch
|
blob
|
history
diff --git
a/gst/icydemux/gsticydemux.c
b/gst/icydemux/gsticydemux.c
index
d92de7c
..
4265529
100644
(file)
--- 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);