[vlc-commits] AVcapture: do not silently call objectAtIndexedSubscript

Jean-Baptiste Kempf git at videolan.org
Wed Dec 21 20:25:03 CET 2016


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 21 20:22:19 2016 +0100| [286bf0fc49aa69a9ebf6b26a222acab6ea3b0976] | committer: Jean-Baptiste Kempf

AVcapture: do not silently call objectAtIndexedSubscript

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/access/avcapture.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/access/avcapture.m b/modules/access/avcapture.m
index 2c8709a..7d3267b 100644
--- a/modules/access/avcapture.m
+++ b/modules/access/avcapture.m
@@ -303,7 +303,7 @@ static int Open(vlc_object_t *p_this)
 
         if ( ivideo < [myVideoDevices count] )
         {
-            p_sys->device = CFBridgingRetain(myVideoDevices[ivideo]);
+            p_sys->device = CFBridgingRetain([myVideoDevices objectAtIndex:ivideo]);
         }
         else
         {



More information about the vlc-commits mailing list