mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
applemedia: enable avfvideosrc if AVFoundation is present
This commit is contained in:
parent
b6925d5c56
commit
0d74dc802a
2 changed files with 17 additions and 5 deletions
|
@ -75,12 +75,10 @@ if HAVE_IOS
|
|||
|
||||
libgstapplemedia_la_SOURCES += \
|
||||
iosassetsrc.m
|
||||
# avfvideosrc.m
|
||||
|
||||
libgstapplemedia_la_LDFLAGS += \
|
||||
-Wl,-framework -Wl,Foundation \
|
||||
-Wl,-framework -Wl,AssetsLibrary
|
||||
# -Wl,-framework -Wl,AVFoundation
|
||||
|
||||
else
|
||||
|
||||
|
@ -95,3 +93,12 @@ libgstapplemedia_la_LDFLAGS += \
|
|||
|
||||
endif
|
||||
|
||||
if HAVE_AVFOUNDATION
|
||||
|
||||
libgstapplemedia_la_SOURCES += \
|
||||
avfvideosrc.m
|
||||
|
||||
libgstapplemedia_la_LDFLAGS += \
|
||||
-Wl,-framework -Wl,AVFoundation
|
||||
|
||||
endif
|
||||
|
|
|
@ -22,11 +22,13 @@
|
|||
#endif
|
||||
|
||||
#ifdef HAVE_IOS
|
||||
#include "avfvideosrc.h"
|
||||
#include "iosassetsrc.h"
|
||||
#else
|
||||
#include "qtkitvideosrc.h"
|
||||
#endif
|
||||
#ifdef HAVE_AVFOUNDATION
|
||||
#include <Foundation/Foundation.h>
|
||||
#include "avfvideosrc.h"
|
||||
#endif
|
||||
#include "vth264decbin.h"
|
||||
#include "vth264encbin.h"
|
||||
|
@ -53,8 +55,6 @@ plugin_init (GstPlugin * plugin)
|
|||
#ifdef HAVE_IOS
|
||||
res &= gst_element_register (plugin, "iosassetsrc", GST_RANK_SECONDARY,
|
||||
GST_TYPE_IOS_ASSET_SRC);
|
||||
res &= gst_element_register (plugin, "avfvideosrc", GST_RANK_NONE,
|
||||
GST_TYPE_AVF_VIDEO_SRC);
|
||||
#else
|
||||
enable_mt_mode ();
|
||||
|
||||
|
@ -62,6 +62,11 @@ plugin_init (GstPlugin * plugin)
|
|||
GST_TYPE_QTKIT_VIDEO_SRC);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_AVFOUNDATION
|
||||
res &= gst_element_register (plugin, "avfvideosrc", GST_RANK_NONE,
|
||||
GST_TYPE_AVF_VIDEO_SRC);
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
res &= gst_element_register (plugin, "vth264decbin", GST_RANK_NONE,
|
||||
GST_TYPE_VT_H264_DEC_BIN);
|
||||
|
|
Loading…
Reference in a new issue