[vlc-commits] codec/videotoolbox: Enable ARC

Marvin Scholz git at videolan.org
Thu Feb 15 00:45:38 CET 2018


vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Feb 15 00:40:52 2018 +0100| [8199b15c9ef9fc2d169a0e9b391085ae1fca2d7d] | committer: Marvin Scholz

codec/videotoolbox: Enable ARC

Enable automatic reference counting for the VideoToolbox module

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8199b15c9ef9fc2d169a0e9b391085ae1fca2d7d
---

 modules/codec/Makefile.am | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/codec/Makefile.am b/modules/codec/Makefile.am
index d661bd91f4..99f9bfa949 100644
--- a/modules/codec/Makefile.am
+++ b/modules/codec/Makefile.am
@@ -353,11 +353,12 @@ libvideotoolbox_plugin_la_SOURCES = \
 	packetizer/h264_slice.c packetizer/h264_slice.h \
 	packetizer/h264_nal.c packetizer/h264_nal.h \
 	packetizer/hevc_nal.c packetizer/hevc_nal.h
+libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -fobjc-arc
 if HAVE_IOS
-libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -miphoneos-version-min=8.0
+libvideotoolbox_plugin_la_OBJCFLAGS += -miphoneos-version-min=8.0
 endif
 if HAVE_TVOS
-libvideotoolbox_plugin_la_OBJCFLAGS = $(AM_OBJCFLAGS) -mtvos-version-min=10.2
+libvideotoolbox_plugin_la_OBJCFLAGS += -mtvos-version-min=10.2
 endif
 libvideotoolbox_plugin_la_LIBADD = libchroma_copy.la
 libvideotoolbox_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo



More information about the vlc-commits mailing list