mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 01:45:33 +00:00
videomixer: Unref allowed caps after usage
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=734474
This commit is contained in:
parent
c85ae43a6e
commit
1fa61632fe
1 changed files with 4 additions and 1 deletions
|
@ -316,8 +316,11 @@ gst_videomixer2_update_converters (GstVideoMixer2 * mix)
|
|||
|
||||
downstream_caps = gst_pad_get_allowed_caps (mix->srcpad);
|
||||
|
||||
if (!downstream_caps || gst_caps_is_empty (downstream_caps))
|
||||
if (!downstream_caps || gst_caps_is_empty (downstream_caps)) {
|
||||
if (downstream_caps)
|
||||
gst_caps_unref (downstream_caps);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
formats_table = g_hash_table_new (g_direct_hash, g_direct_equal);
|
||||
|
||||
|
|
Loading…
Reference in a new issue