summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/check/libs/discoverer.c2
-rw-r--r--tools/gst-discoverer.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/check/libs/discoverer.c b/tests/check/libs/discoverer.c
index bbee562fd..6248b84ec 100644
--- a/tests/check/libs/discoverer.c
+++ b/tests/check/libs/discoverer.c
@@ -231,7 +231,9 @@ GST_START_TEST (test_disco_missing_plugins)
result = gst_discoverer_info_get_result (info);
GST_INFO ("result: %d, error message: %s", result, err->message);
fail_unless_equals_int (result, GST_DISCOVERER_MISSING_PLUGINS);
+#ifndef GST_DISABLE_DEPRECATED
GST_INFO ("misc: %" GST_PTR_FORMAT, gst_discoverer_info_get_misc (info));
+#endif
gst_discoverer_info_unref (info);
g_error_free (err);
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));