mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 02:15:31 +00:00
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
1 changed files with 4 additions and 2 deletions
|
@ -204,8 +204,10 @@ print_stream_info (GstDiscovererStreamInfo * info, void *depth)
|
|||
desc =
|
||||
gst_stream_video_information_to_string (info,
|
||||
GPOINTER_TO_INT (depth) + 1);
|
||||
g_print ("%s", desc);
|
||||
g_free (desc);
|
||||
if (desc) {
|
||||
g_print ("%s", desc);
|
||||
g_free (desc);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue