summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-08-30 16:21:25 +0300
committerSebastian Dröge <sebastian@centricular.com>2016-08-31 10:03:15 +0300
commit807b0322c50dfe17c55a8304c0278c2d59fa8358 (patch)
treea6e79e331614ca879ecb0a303d2e8661ce552ff6 /sys
parent840c2729cc9525ec302bf197a82d325b6e9f5808 (diff)
downloadgstreamer-plugins-bad-807b0322c50dfe17c55a8304c0278c2d59fa8358.tar.gz
applemedia: Conditionally compile qtkitvideosrc
The API was deprecated in 10.9 and apparently does not exist in the SDK for macOS Sierra anymore. https://bugzilla.gnome.org/show_bug.cgi?id=770587
Diffstat (limited to 'sys')
-rw-r--r--sys/applemedia/Makefile.am10
-rw-r--r--sys/applemedia/plugin.m5
2 files changed, 12 insertions, 3 deletions
diff --git a/sys/applemedia/Makefile.am b/sys/applemedia/Makefile.am
index 094cce570..d77e47c7b 100644
--- a/sys/applemedia/Makefile.am
+++ b/sys/applemedia/Makefile.am
@@ -94,17 +94,23 @@ libgstapplemedia_la_LDFLAGS += \
else
libgstapplemedia_la_SOURCES += \
- qtkitvideosrc.m \
iosurfacememory.c
libgstapplemedia_la_LDFLAGS += \
-Wl,-framework -Wl,Cocoa \
- -Wl,-framework -Wl,QTKit \
-Wl,-framework -Wl,OpenGL \
-Wl,-framework -Wl,IOSurface
endif
+if HAVE_QTKIT
+libgstapplemedia_la_SOURCES += \
+ qtkitvideosrc.m
+
+libgstapplemedia_la_LDFLAGS += \
+ -Wl,-framework -Wl,QTKit
+endif
+
if HAVE_AVFOUNDATION
libgstapplemedia_la_SOURCES += \
diff --git a/sys/applemedia/plugin.m b/sys/applemedia/plugin.m
index e1e8e9e17..19384c7b8 100644
--- a/sys/applemedia/plugin.m
+++ b/sys/applemedia/plugin.m
@@ -25,7 +25,8 @@
#include "corevideomemory.h"
#ifdef HAVE_IOS
#include "iosassetsrc.h"
-#else
+#endif
+#ifdef HAVE_QTKIT
#include "qtkitvideosrc.h"
#endif
#ifdef HAVE_AVFOUNDATION
@@ -73,7 +74,9 @@ plugin_init (GstPlugin * plugin)
GST_TYPE_IOS_ASSET_SRC);
#else
enable_mt_mode ();
+#endif
+#ifdef HAVE_QTKIT
res = gst_element_register (plugin, "qtkitvideosrc", GST_RANK_SECONDARY,
GST_TYPE_QTKIT_VIDEO_SRC);
#endif