[vlc-commits] videotoolbox: clarify that we don't use ARC for this module

Felix Paul Kühne git at videolan.org
Tue Jun 14 14:52:42 CEST 2016


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Jun 14 14:41:25 2016 +0200| [579fcee67550c5506d330b259406eb305666cfe7] | committer: Felix Paul Kühne

videotoolbox: clarify that we don't use ARC for this module

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

 modules/codec/Makefile.am    |    1 -
 modules/codec/videotoolbox.m |    4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/codec/Makefile.am b/modules/codec/Makefile.am
index c0f8d32..0a23411 100644
--- a/modules/codec/Makefile.am
+++ b/modules/codec/Makefile.am
@@ -299,7 +299,6 @@ codec_LTLIBRARIES += $(LTLIBoggspots)
 libvideotoolbox_plugin_la_SOURCES = video_chroma/copy.c video_chroma/copy.h codec/videotoolbox.m \
                                     packetizer/h264_nal.c packetizer/h264_nal.h \
                                     packetizer/hxxx_nal.c packetizer/hxxx_nal.h
-libvideotoolbox_plugin_la_CFLAGS = $(AM_CFLAGS) -fobjc-arc
 libvideotoolbox_plugin_la_LDFLAGS = $(AM_LDFLAGS) -rpath '$(codecdir)' -Wl,-framework,Foundation -Wl,-framework,VideoToolbox -Wl,-framework,CoreMedia -Wl,-framework,CoreVideo
 EXTRA_LTLIBRARIES += libvideotoolbox_plugin.la
 codec_LTLIBRARIES += $(LTLIBvideotoolbox)
diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 8397c8f..73423a9 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -627,10 +627,10 @@ static void StopVideoToolbox(decoder_t *p_dec)
 
     if (p_sys->b_started) {
         if (p_sys->outputTimeStamps != nil)
-            CFRelease(p_sys->outputTimeStamps);
+            [p_sys->outputTimeStamps release];
         p_sys->outputTimeStamps = nil;
         if (p_sys->outputFrames != nil)
-            CFRelease(p_sys->outputFrames);
+            [p_sys->outputFrames release];
         p_sys->outputFrames = nil;
 
         p_sys->b_started = false;



More information about the vlc-commits mailing list