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:
Daniel Knobe 2021-11-15 11:04:25 +01:00 committed by GStreamer Marge Bot
parent 97d83056b3
commit 74957bfd50

View file

@ -2515,7 +2515,7 @@ gst_caps_from_string (const gchar * string)
{
GstCaps *caps;
g_return_val_if_fail (string, FALSE);
g_return_val_if_fail (string, NULL);
caps = gst_caps_new_empty ();
if (gst_caps_from_string_inplace (caps, string)) {