tools: gst-launch: print structure property notifies nicer
authorTim-Philipp Müller <tim@centricular.com>
Mon, 27 Mar 2017 17:27:59 +0000 (18:27 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 27 Mar 2017 17:27:59 +0000 (18:27 +0100)
One less layer of escaping, but still lots of ugly \.

tools/gst-launch.c

index c0bef9f..e277f2e 100644 (file)
@@ -865,6 +865,8 @@ event_loop (GstElement * pipeline, gboolean blocking, gboolean do_progress,
             val_str = gst_caps_to_string (g_value_get_boxed (val));
           else if (G_VALUE_TYPE (val) == GST_TYPE_TAG_LIST)
             val_str = gst_tag_list_to_string (g_value_get_boxed (val));
+          else if (G_VALUE_TYPE (val) == GST_TYPE_STRUCTURE)
+            val_str = gst_structure_to_string (g_value_get_boxed (val));
           else
             val_str = gst_value_serialize (val);
         } else {