From 0f0a50c1197df841c6a6368bb26857bef0a5cda5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 15 Sep 2014 15:42:41 +0300 Subject: [PATCH] vtdec: No need to set kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder on iOS --- sys/applemedia/vtdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c index 2d2e0b5f38..2c92b0f920 100644 --- a/sys/applemedia/vtdec.c +++ b/sys/applemedia/vtdec.c @@ -322,8 +322,12 @@ gst_vtdec_create_session (GstVtdec * vtdec) videoDecoderSpecification = CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); + + /* This is the default on iOS and the key does not exist there */ +#ifndef HAVE_IOS gst_vtutil_dict_set_boolean (videoDecoderSpecification, kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder, TRUE); +#endif output_image_buffer_attrs = CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,