summaryrefslogtreecommitdiff
path: root/sys/applemedia/vtenc.c
diff options
context:
space:
mode:
authorIlya Konstantinov <ilya.konstantinov@gmail.com>2015-05-11 16:39:19 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-06-10 10:26:28 +0200
commitf5c29c737936e60e744a91bda9010ffd2e0202b2 (patch)
tree162df5cd4e4a5e1ac5aea500c2b63185ab71a8d4 /sys/applemedia/vtenc.c
parent9fb4d5df20fe34c6096a3556dbe985f4775f1914 (diff)
downloadgstreamer-plugins-bad-f5c29c737936e60e744a91bda9010ffd2e0202b2.tar.gz
vtenc: Add missing gst_vtenc_frame_free() in error path
https://bugzilla.gnome.org/show_bug.cgi?id=750668
Diffstat (limited to 'sys/applemedia/vtenc.c')
-rw-r--r--sys/applemedia/vtenc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c
index 5c926ab38..7267f5ddf 100644
--- a/sys/applemedia/vtenc.c
+++ b/sys/applemedia/vtenc.c
@@ -1164,6 +1164,7 @@ gst_vtenc_encode_frame (GstVTEnc * self, GstVideoCodecFrame * frame)
pixel_format_type = kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange;
break;
default:
+ gst_vtenc_frame_free (vframe);
goto cv_error;
}