check string for nullity

Original commit message from CVS:
check string for nullity
This commit is contained in:
Thomas Vander Stichele 2004-03-30 11:21:40 +00:00
parent 0a602d04e0
commit 161bcaee42
2 changed files with 6 additions and 0 deletions

View file

@ -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:

View file

@ -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;