From: Tim-Philipp Müller Date: Wed, 13 Apr 2016 15:40:43 +0000 (+0100) Subject: tools: gst-launch: fix up caps printing in verbose mode X-Git-Tag: 1.10.4~296 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=939a7fee6c4ac1f5c14c3f02dd31181ad51700d2;p=platform%2Fupstream%2Fgstreamer.git tools: gst-launch: fix up caps printing in verbose mode Add missing 'else' and print caps and taglists without the annoying duplicate string escaping, making both nicer to read. Fixes string leak and coverity CID 1358492. --- diff --git a/tools/gst-launch.c b/tools/gst-launch.c index ac10601..2de754d 100644 --- a/tools/gst-launch.c +++ b/tools/gst-launch.c @@ -863,7 +863,10 @@ event_loop (GstElement * pipeline, gboolean blocking, gboolean do_progress, val_str = g_value_dup_string (val); else if (G_VALUE_TYPE (val) == GST_TYPE_CAPS) val_str = gst_caps_to_string (g_value_get_boxed (val)); - val_str = gst_value_serialize (val); + else if (G_VALUE_TYPE (val) == GST_TYPE_TAG_LIST) + val_str = gst_tag_list_to_string (g_value_get_boxed (val)); + else + val_str = gst_value_serialize (val); } else { val_str = g_strdup ("(no value)"); }