mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-02 14:36:41 +00:00
vtdec: No need to set kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder on iOS
This commit is contained in:
parent
af3c3473e0
commit
0f0a50c119
1 changed files with 4 additions and 0 deletions
|
@ -322,8 +322,12 @@ gst_vtdec_create_session (GstVtdec * vtdec)
|
||||||
videoDecoderSpecification =
|
videoDecoderSpecification =
|
||||||
CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
||||||
&kCFTypeDictionaryValueCallBacks);
|
&kCFTypeDictionaryValueCallBacks);
|
||||||
|
|
||||||
|
/* This is the default on iOS and the key does not exist there */
|
||||||
|
#ifndef HAVE_IOS
|
||||||
gst_vtutil_dict_set_boolean (videoDecoderSpecification,
|
gst_vtutil_dict_set_boolean (videoDecoderSpecification,
|
||||||
kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder, TRUE);
|
kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder, TRUE);
|
||||||
|
#endif
|
||||||
|
|
||||||
output_image_buffer_attrs =
|
output_image_buffer_attrs =
|
||||||
CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
CFDictionaryCreateMutable (NULL, 0, &kCFTypeDictionaryKeyCallBacks,
|
||||||
|
|
Loading…
Reference in a new issue