mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +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 */
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue