From 01c60e664dd14f306948478caa982400331ceb3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 27 Jan 2017 18:11:15 +0200 Subject: [PATCH] applemedia: Fix some compiler warnings on iOS --- sys/applemedia/plugin.m | 1 + sys/applemedia/vtenc.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/applemedia/plugin.m b/sys/applemedia/plugin.m index 19384c7b80..fb7ee928ad 100644 --- a/sys/applemedia/plugin.m +++ b/sys/applemedia/plugin.m @@ -25,6 +25,7 @@ #include "corevideomemory.h" #ifdef HAVE_IOS #include "iosassetsrc.h" +#include "iosglmemory.h" #endif #ifdef HAVE_QTKIT #include "qtkitvideosrc.h" diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c index 8b325fb82e..cef8f80b60 100644 --- a/sys/applemedia/vtenc.c +++ b/sys/applemedia/vtenc.c @@ -790,10 +790,11 @@ gst_vtenc_create_session (GstVTEnc * self) VTCompressionSessionRef session = NULL; CFMutableDictionaryRef encoder_spec = NULL, pb_attrs; OSStatus status; + +#if !HAVE_IOS const GstVTEncoderDetails *codec_details = GST_VTENC_CLASS_GET_CODEC_DETAILS (G_OBJECT_GET_CLASS (self)); -#if !HAVE_IOS encoder_spec = CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);