mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 12:21:17 +00:00
gst-discoverer: Print out topology if available.
If we have some unhandled streams, we can still print out the remaining topology.
This commit is contained in:
parent
b8dea19bbd
commit
e17b42181c
1 changed files with 8 additions and 6 deletions
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue