caps: fix type of return value if string is null in gst_caps_from_string
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1348>
This commit is contained in:
parent
97d83056b3
commit
74957bfd50
@ -2515,7 +2515,7 @@ gst_caps_from_string (const gchar * string)
|
|||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
|
|
||||||
g_return_val_if_fail (string, FALSE);
|
g_return_val_if_fail (string, NULL);
|
||||||
|
|
||||||
caps = gst_caps_new_empty ();
|
caps = gst_caps_new_empty ();
|
||||||
if (gst_caps_from_string_inplace (caps, string)) {
|
if (gst_caps_from_string_inplace (caps, string)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user