Commit 08808f7f authored by Wim Taymans's avatar Wim Taymans
Browse files

pulsesrc: don't discard the result of _set_caps()

Use the result of gst_pad_set_caps() instead of assuming success.

See #590678
parent e9e94a77
...@@ -926,8 +926,7 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc) ...@@ -926,8 +926,7 @@ gst_pulsesrc_negotiate (GstBaseSrc * basesrc)
/* yay, fixed caps, use those then */ /* yay, fixed caps, use those then */
result = gst_pulsesrc_create_stream (GST_PULSESRC_CAST (basesrc), caps); result = gst_pulsesrc_create_stream (GST_PULSESRC_CAST (basesrc), caps);
if (result) if (result)
gst_pad_set_caps (GST_BASE_SRC_PAD (basesrc), caps); result = gst_pad_set_caps (GST_BASE_SRC_PAD (basesrc), caps);
result = TRUE;
} }
} }
gst_caps_unref (caps); gst_caps_unref (caps);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment