Transcoder: Fix caps leak

This commit is contained in:
Jonas Kvinge 2022-07-16 16:10:39 +02:00
parent c358216ad9
commit 26a3c7ad6a
1 changed files with 1 additions and 0 deletions

View File

@ -119,6 +119,7 @@ GstElement *Transcoder::CreateElementForMimeType(const QString &element_type, co
// Does this pad support the mime type we want?
GstCaps *caps = gst_static_pad_template_get_caps(pad_template);
GstCaps *intersection = gst_caps_intersect(caps, target_caps);
gst_caps_unref(caps);
if (intersection) {
if (!gst_caps_is_empty(intersection)) {