Commit da9682a5 authored by Edward Hervey's avatar Edward Hervey
Browse files

discoverer: Don't ref a NULL caps
parent a5752d8e
......@@ -539,7 +539,9 @@ gst_discoverer_stream_info_get_caps (GstDiscovererStreamInfo * info)
g_return_val_if_fail (GST_IS_DISCOVERER_STREAM_INFO (info), NULL);
return gst_caps_ref (info->caps);
if (info->caps)
return gst_caps_ref (info->caps);
return NULL;
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