vtenc: fix compilation on < 10.9
authorAlessandro Decina <alessandro.d@gmail.com>
Wed, 12 Nov 2014 08:59:53 +0000 (09:59 +0100)
committerAlessandro Decina <alessandro.d@gmail.com>
Wed, 12 Nov 2014 09:00:11 +0000 (10:00 +0100)
sys/applemedia/vtenc.c

index e02c182..5e48c8b 100644 (file)
@@ -38,6 +38,13 @@ GST_DEBUG_CATEGORY (gst_vtenc_debug);
 #define GST_VTENC_CODEC_DETAILS_QDATA \
     g_quark_from_static_string ("vtenc-codec-details")
 
+/* define EnableHardwareAcceleratedVideoEncoder in < 10.9 */
+#if defined(MAC_OS_X_VERSION_MAX_ALLOWED) && MAC_OS_X_VERSION_MAX_ALLOWED < 1090
+const CFStringRef
+    kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder =
+CFSTR ("EnableHardwareAcceleratedVideoEncoder");
+#endif
+
 enum
 {
   PROP_0,