gst_caps_to_string: print NULL caps correctly

Original commit message from CVS:
gst_caps_to_string: print NULL caps correctly
This commit is contained in:
David Schleef 2003-05-30 03:02:38 +00:00
parent e05cab4b4c
commit 808c52f535

View 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 */