Commit e17b4218 authored by Edward Hervey's avatar Edward Hervey

gst-discoverer: Print out topology if available.

If we have some unhandled streams, we can still print out the remaining
topology.
parent b8dea19b
......@@ -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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment