]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - glsdk/gstreamer0-10.git/commitdiff
check string for nullity
authorThomas Vander Stichele <thomas@apestaart.org>
Tue, 30 Mar 2004 11:21:40 +0000 (11:21 +0000)
committerThomas Vander Stichele <thomas@apestaart.org>
Tue, 30 Mar 2004 11:21:40 +0000 (11:21 +0000)
Original commit message from CVS:
check string for nullity

ChangeLog
gst/gstcaps.c

index 6247bc2efed34f196bf2e2af92e198fa0b768325..02a04dd0923861f79e3b286c597723afeba4e0cd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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:
index 39be411385b50ce40bc095e22c56720704cf6c23..ba492bf2e3ae7c149fa5f6cad0304f252d09d4cc 100644 (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;