mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-08 16:35:40 +00:00
check string for nullity
Original commit message from CVS: check string for nullity
This commit is contained in:
parent
0a602d04e0
commit
161bcaee42
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-03-30 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gstcaps.c: (gst_caps_from_string_inplace):
|
||||
make sure we don't get NULL strings
|
||||
|
||||
2004-03-30 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst/gstcaps.c:
|
||||
|
|
|
@ -1129,6 +1129,7 @@ gst_caps_from_string_inplace (GstCaps * caps, const gchar * string)
|
|||
GstStructure *structure;
|
||||
gchar *s;
|
||||
|
||||
g_return_val_if_fail (string, FALSE);
|
||||
if (strcmp ("ANY", string) == 0) {
|
||||
caps->flags = GST_CAPS_FLAGS_ANY;
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue