mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
pulsesrc: don't discard the result of _set_caps()
Use the result of gst_pad_set_caps() instead of assuming success. See #590678
This commit is contained in:
parent
e9e94a771b
commit
08808f7f32
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue