summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Decina <alessandro.d@gmail.com>2014-11-12 09:59:53 +0100
committerSebastian Dröge <sebastian@centricular.com>2014-11-19 17:24:45 +0100
commit4b8867138bd1509e688c80c5c99da3cddefb96f0 (patch)
tree1de1801d590dec53cae0f587ca404aa1eb1c4d3a
parent63f460c5b069c5a6c8c5e9d7f79ce57266904379 (diff)
vtenc: fix compilation on < 10.9
-rw-r--r--sys/applemedia/vtenc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c
index 6ca5f5678..3f0ab865d 100644
--- a/sys/applemedia/vtenc.c
+++ b/sys/applemedia/vtenc.c
@@ -36,6 +36,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,