diff options
author | Edward Hervey <edward@centricular.com> | 2018-04-02 08:43:17 +0200 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2018-04-02 08:53:28 +0200 |
commit | cb28f4962524aaea21bb03b6fa81c1f6ace42009 (patch) | |
tree | 64acdfacf26d01e7f3cd8a01a82886bd3cce7fb6 /tools | |
parent | d69fa0c78ebab8022adafd6ca81e630de08ce048 (diff) | |
download | gstreamer-plugins-base-cb28f4962524aaea21bb03b6fa81c1f6ace42009.tar.gz |
tools: Fix discoverer deprecation
The only information provided by "misc" was the missing plugins which
is already handled with another API
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-discoverer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c index 318297c2b..49e0aae0b 100644 --- a/tools/gst-discoverer.c +++ b/tools/gst-discoverer.c @@ -66,7 +66,9 @@ gst_stream_information_to_string (GstDiscovererStreamInfo * info, GString * s, { gchar *tmp; GstCaps *caps; +#ifndef GST_DISABLE_DEPRECATED const GstStructure *misc; +#endif my_g_string_append_printf (s, depth, "Codec:\n"); caps = gst_discoverer_stream_info_get_caps (info); @@ -75,6 +77,7 @@ gst_stream_information_to_string (GstDiscovererStreamInfo * info, GString * s, my_g_string_append_printf (s, depth, " %s\n", tmp); g_free (tmp); +#ifndef GST_DISABLE_DEPRECATED my_g_string_append_printf (s, depth, "Additional info:\n"); if ((misc = gst_discoverer_stream_info_get_misc (info))) { tmp = gst_structure_to_string (misc); @@ -83,6 +86,7 @@ gst_stream_information_to_string (GstDiscovererStreamInfo * info, GString * s, } else { my_g_string_append_printf (s, depth, " None\n"); } +#endif my_g_string_append_printf (s, depth, "Stream ID: %s\n", gst_discoverer_stream_info_get_stream_id (info)); |