mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
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:
parent
e05cab4b4c
commit
808c52f535
1 changed files with 4 additions and 2 deletions
|
@ -70,10 +70,12 @@ gst_caps_to_string (GstCaps *caps)
|
||||||
gchar *ret;
|
gchar *ret;
|
||||||
GString *result;
|
GString *result;
|
||||||
|
|
||||||
g_return_val_if_fail (caps != NULL, NULL);
|
|
||||||
|
|
||||||
result = g_string_new ("");
|
result = g_string_new ("");
|
||||||
|
|
||||||
|
if(caps==NULL){
|
||||||
|
g_string_append(result, "NULL");
|
||||||
|
}
|
||||||
|
|
||||||
while (caps) {
|
while (caps) {
|
||||||
gchar *props;
|
gchar *props;
|
||||||
GValue value = { 0, }; /* the important thing is that value.type = 0 */
|
GValue value = { 0, }; /* the important thing is that value.type = 0 */
|
||||||
|
|
Loading…
Reference in a new issue