diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-09-15 15:42:41 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-09-16 11:30:57 +0300 |
commit | 50cb8bf4421b043f1fb31dfa33b033bd3716cb3d (patch) | |
tree | 550c2d3265f3071814aee8200f76b3fe5ded2cf3 /sys | |
parent | 5bb00a72b928f54e0cf343212f0e4d6e6ab5f441 (diff) | |
download | gstreamer-plugins-bad-50cb8bf4421b043f1fb31dfa33b033bd3716cb3d.tar.gz |
vtdec: No need to set kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder on iOS
Diffstat (limited to 'sys')
-rw-r--r-- | sys/applemedia/vtdec.c | 4 |
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, |