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,