Transcoder: Fix caps leak
This commit is contained in:
@@ -119,6 +119,7 @@ GstElement *Transcoder::CreateElementForMimeType(const QString &element_type, co
|
|||||||
// Does this pad support the mime type we want?
|
// Does this pad support the mime type we want?
|
||||||
GstCaps *caps = gst_static_pad_template_get_caps(pad_template);
|
GstCaps *caps = gst_static_pad_template_get_caps(pad_template);
|
||||||
GstCaps *intersection = gst_caps_intersect(caps, target_caps);
|
GstCaps *intersection = gst_caps_intersect(caps, target_caps);
|
||||||
|
gst_caps_unref(caps);
|
||||||
|
|
||||||
if (intersection) {
|
if (intersection) {
|
||||||
if (!gst_caps_is_empty(intersection)) {
|
if (!gst_caps_is_empty(intersection)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user