gst_caps_to_string: print NULL caps correctly
authorDavid Schleef <ds@schleef.org>
Fri, 30 May 2003 03:02:38 +0000 (03:02 +0000)
committerDavid Schleef <ds@schleef.org>
Fri, 30 May 2003 03:02:38 +0000 (03:02 +0000)
Original commit message from CVS:
gst_caps_to_string: print NULL caps correctly

gst/gstcaps.c

index bf35ff6..9960f11 100644 (file)
@@ -70,10 +70,12 @@ gst_caps_to_string (GstCaps *caps)
   gchar *ret;
   GString *result;
 
-  g_return_val_if_fail (caps != NULL, NULL);
-
   result = g_string_new ("");
 
+  if(caps==NULL){
+    g_string_append(result, "NULL");
+  }
+
   while (caps) {
     gchar *props;
     GValue value = { 0, }; /* the important thing is that value.type = 0 */