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
@ -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…
x
Reference in New Issue
Block a user