mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 16:18:16 +00:00
discoverer: Don't ref a NULL caps
https://bugzilla.gnome.org/show_bug.cgi?id=632988
This commit is contained in:
parent
a5752d8ea7
commit
da9682a593
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue