projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9e94a7
)
pulsesrc: don't discard the result of _set_caps()
author
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 24 Aug 2009 14:22:47 +0000
(16:22 +0200)
committer
Wim Taymans
<wim.taymans@collabora.co.uk>
Mon, 24 Aug 2009 14:22:47 +0000
(16:22 +0200)
Use the result of gst_pad_set_caps() instead of assuming success.
See #590678
ext/pulse/pulsesrc.c
patch
|
blob
|
history
diff --git
a/ext/pulse/pulsesrc.c
b/ext/pulse/pulsesrc.c
index
8686407
..
fa60345
100644
(file)
--- a/
ext/pulse/pulsesrc.c
+++ b/
ext/pulse/pulsesrc.c
@@
-926,8
+926,7
@@
gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
/* yay, fixed caps, use those then */
result = gst_pulsesrc_create_stream (GST_PULSESRC_CAST (basesrc), caps);
if (result)
- gst_pad_set_caps (GST_BASE_SRC_PAD (basesrc), caps);
- result = TRUE;
+ result = gst_pad_set_caps (GST_BASE_SRC_PAD (basesrc), caps);
}
}
gst_caps_unref (caps);