summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2014-09-15 15:42:41 +0300
committerSebastian Dröge <sebastian@centricular.com>2014-09-16 11:30:57 +0300
commit50cb8bf4421b043f1fb31dfa33b033bd3716cb3d (patch)
tree550c2d3265f3071814aee8200f76b3fe5ded2cf3 /sys
parent5bb00a72b928f54e0cf343212f0e4d6e6ab5f441 (diff)
downloadgstreamer-plugins-bad-50cb8bf4421b043f1fb31dfa33b033bd3716cb3d.tar.gz
vtdec: No need to set kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder on iOS
Diffstat (limited to 'sys')
-rw-r--r--sys/applemedia/vtdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/applemedia/vtdec.c b/sys/applemedia/vtdec.c
index 2d2e0b5f3..2c92b0f92 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,