From 808c52f535dac52ae0132151e89c0bec8c7896e8 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Fri, 30 May 2003 03:02:38 +0000 Subject: [PATCH] gst_caps_to_string: print NULL caps correctly Original commit message from CVS: gst_caps_to_string: print NULL caps correctly --- gst/gstcaps.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst/gstcaps.c b/gst/gstcaps.c index bf35ff6e81..9960f114da 100644 --- a/gst/gstcaps.c +++ b/gst/gstcaps.c @@ -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 */