From 56760052350fc71f5d00ed8b69f4924d53c76967 Mon Sep 17 00:00:00 2001 From: Josep Torra Date: Tue, 12 Dec 2017 08:40:33 +0100 Subject: [PATCH] vtenc: fix a warning when building in MacOS 10.12 vtenc.c:564:20: error: incompatible pointer types passing 'GstVTEnc *' (aka 'struct _GstVTEnc *') to parameter of type 'GstVideoEncoder *' (aka 'struct _GstVideoEncoder *') --- sys/applemedia/vtenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c index 61b8ffc27e..a1de16a294 100644 --- a/sys/applemedia/vtenc.c +++ b/sys/applemedia/vtenc.c @@ -561,7 +561,7 @@ gst_vtenc_stop (GstVideoEncoder * enc) GstVTEnc *self = GST_VTENC_CAST (enc); GST_VIDEO_ENCODER_STREAM_LOCK (self); - gst_vtenc_flush (self); + gst_vtenc_flush (enc); GST_VIDEO_ENCODER_STREAM_UNLOCK (self); GST_OBJECT_LOCK (self);