vtenc: Add missing gst_vtenc_frame_free() in error path

https://bugzilla.gnome.org/show_bug.cgi?id=750668
This commit is contained in:
Ilya Konstantinov 2015-05-11 16:39:19 +02:00 committed by Sebastian Dröge
parent 9fb4d5df20
commit f5c29c7379

View file

@ -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;
}