vtdec: No need to set kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDeco...
authorSebastian Dröge <sebastian@centricular.com>
Mon, 15 Sep 2014 12:42:41 +0000 (15:42 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 15 Sep 2014 12:42:41 +0000 (15:42 +0300)
sys/applemedia/vtdec.c

index 2d2e0b5f38197b864f7d2ce2d348093b311a15ed..2c92b0f920e362f083528acfe046a78827d4dea4 100644 (file)
@@ -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,