diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-08-24 16:22:47 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2009-08-24 16:22:47 +0200 |
commit | 08808f7f3236933ed3ecf9e8abddf5313fda4db2 (patch) | |
tree | 26ad32231c590f34395a857e7629246c4841c3bd /ext | |
parent | e9e94a771bec7682fe53a7006fb1f9e3e691bc32 (diff) |
pulsesrc: don't discard the result of _set_caps()
Use the result of gst_pad_set_caps() instead of assuming success.
See #590678
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pulse/pulsesrc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/pulse/pulsesrc.c b/ext/pulse/pulsesrc.c index 86864072..fa603454 100644 --- 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); |