Commit 399f528a authored by Stefan Kost's avatar Stefan Kost

discoverer: handle desc==NULL

It would otherwise be printed as (null) and mess up indentation (no \n).
parent 8fc424bc
......@@ -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);
}
}
}
......
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