[vlc-commits] avcapture: fix compilation warnings

Felix Paul Kühne git at videolan.org
Tue Apr 30 18:01:27 CEST 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Apr 30 18:00:42 2013 +0200| [9e23ed5926c5c05a16a8196c7318f882f9661482] | committer: Felix Paul Kühne

avcapture: fix compilation warnings

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

 modules/access/avcapture.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/access/avcapture.m b/modules/access/avcapture.m
index b38f951..ad09735 100644
--- a/modules/access/avcapture.m
+++ b/modules/access/avcapture.m
@@ -297,7 +297,7 @@ static int Open(vlc_object_t *p_this)
     {
         AVCaptureDevice *avf_device;
         avf_device = myVideoDevices[ivideo];
-        msg_Dbg(p_demux, "avcapture %lu/%lu %s %s", ivideo, deviceCount, [[avf_device modelID] UTF8String], [[avf_device uniqueID] UTF8String]);
+        msg_Dbg(p_demux, "avcapture %u/%u %s %s", ivideo, deviceCount, [[avf_device modelID] UTF8String], [[avf_device uniqueID] UTF8String]);
         if ([[[avf_device uniqueID]stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] isEqualToString:avf_currdevice_uid]) {
             break;
         }
@@ -347,7 +347,7 @@ static int Open(vlc_object_t *p_this)
     [p_sys->session addOutput:p_sys->output];
 
     dispatch_queue_t queue = dispatch_queue_create("avCaptureQueue", NULL);
-    [p_sys->output setSampleBufferDelegate:p_sys->output queue:queue];
+    [p_sys->output setSampleBufferDelegate:(id)p_sys->output queue:queue];
     dispatch_release(queue);
 
     p_sys->output.videoSettings = [NSDictionary dictionaryWithObject:@(kCVPixelFormatType_32BGRA) forKey:(id)kCVPixelBufferPixelFormatTypeKey];



More information about the vlc-commits mailing list