diff options
-rw-r--r-- | tools/gst-discoverer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gst-discoverer.c b/tools/gst-discoverer.c index c68721b1b..00d2d0f41 100644 --- a/tools/gst-discoverer.c +++ b/tools/gst-discoverer.c @@ -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); + } } } |