Commit 56deef07 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Jean-Baptiste Kempf

avcapture: fix compilation for older clang releases

(cherry picked from commit 6b3d8f333d915b99e4304c41401fb3840671cb89)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 3069ebdf
...@@ -297,7 +297,7 @@ static int Open(vlc_object_t *p_this) ...@@ -297,7 +297,7 @@ static int Open(vlc_object_t *p_this)
{ {
AVCaptureDevice *avf_device; AVCaptureDevice *avf_device;
avf_device = [myVideoDevices objectAtIndex:ivideo]; avf_device = [myVideoDevices objectAtIndex: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 %i/%i %s %s", ivideo, deviceCount, [[avf_device modelID] UTF8String], [[avf_device uniqueID] UTF8String]);
if ([[[avf_device uniqueID]stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] isEqualToString:avf_currdevice_uid]) { if ([[[avf_device uniqueID]stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] isEqualToString:avf_currdevice_uid]) {
break; break;
} }
...@@ -350,7 +350,7 @@ static int Open(vlc_object_t *p_this) ...@@ -350,7 +350,7 @@ static int Open(vlc_object_t *p_this)
[p_sys->output setSampleBufferDelegate:(id)p_sys->output queue:queue]; [p_sys->output setSampleBufferDelegate:(id)p_sys->output queue:queue];
dispatch_release(queue); dispatch_release(queue);
p_sys->output.videoSettings = [NSDictionary dictionaryWithObject:@(kCVPixelFormatType_32BGRA) forKey:(id)kCVPixelBufferPixelFormatTypeKey]; p_sys->output.videoSettings = [NSDictionary dictionaryWithObject:[NSNumber numberWithInt:kCVPixelFormatType_32BGRA] forKey:(id)kCVPixelBufferPixelFormatTypeKey];
[p_sys->session startRunning]; [p_sys->session startRunning];
[input release]; [input release];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment