discoverer: handle desc==NULL
It would otherwise be printed as (null) and mess up indentation (no \n).
This commit is contained in:
parent
8fc424bcbf
commit
399f528a33
@ -204,10 +204,12 @@ print_stream_info (GstDiscovererStreamInfo * info, void *depth)
|
|||||||
desc =
|
desc =
|
||||||
gst_stream_video_information_to_string (info,
|
gst_stream_video_information_to_string (info,
|
||||||
GPOINTER_TO_INT (depth) + 1);
|
GPOINTER_TO_INT (depth) + 1);
|
||||||
|
if (desc) {
|
||||||
g_print ("%s", desc);
|
g_print ("%s", desc);
|
||||||
g_free (desc);
|
g_free (desc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_topology (GstDiscovererStreamInfo * info, gint depth)
|
print_topology (GstDiscovererStreamInfo * info, gint depth)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user