diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gst-discoverer.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c index 0dbca304e..d547f0d9b 100644 --- a/tools/gst-discoverer.c +++ b/tools/gst-discoverer.c @@ -251,12 +251,6 @@ print_info (GstDiscovererInfo * info, GError * err) switch (result) { case GST_DISCOVERER_OK: { - sinfo = gst_discoverer_info_get_stream_info (info); - g_print ("\nTopology:\n"); - print_topology (sinfo, 1); - g_print ("\nDuration:\n"); - print_duration (info, 1); - gst_discoverer_stream_info_unref (sinfo); break; } case GST_DISCOVERER_URI_INVALID: @@ -293,6 +287,14 @@ print_info (GstDiscovererInfo * info, GError * err) } } + if ((sinfo = gst_discoverer_info_get_stream_info (info))) { + g_print ("\nTopology:\n"); + print_topology (sinfo, 1); + g_print ("\nDuration:\n"); + print_duration (info, 1); + gst_discoverer_stream_info_unref (sinfo); + } + g_print ("\n"); } |