projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e05cab4
)
gst_caps_to_string: print NULL caps correctly
author
David Schleef
<ds@schleef.org>
Fri, 30 May 2003 03:02:38 +0000
(
03:02
+0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/gst/gstcaps.c
b/gst/gstcaps.c
index
bf35ff6
..
9960f11
100644
(file)
--- 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 */