inspect: show flags the same way they need to be entered
authorStefan Kost <ensonic@users.sf.net>
Fri, 6 May 2011 07:54:08 +0000 (10:54 +0300)
committerStefan Kost <ensonic@users.sf.net>
Wed, 18 May 2011 06:55:57 +0000 (09:55 +0300)
The (de)serialisation uses "+" and not " | ".

tools/gst-inspect.c

index c86285e..c8f51e5 100644 (file)
@@ -306,7 +306,7 @@ flags_to_string (GFlagsValue * vals, guint flags)
     --i;
     if (vals[i].value != 0 && (flags_left & vals[i].value) == vals[i].value) {
       if (s->len > 0)
-        g_string_append (s, " | ");
+        g_string_append_c (s, '+');
       g_string_append (s, vals[i].value_nick);
       flags_left -= vals[i].value;
       if (flags_left == 0)