Commit 0ccf1405 authored by Felix Paul Kühne's avatar Felix Paul Kühne Committed by Felix Paul Kühne
Browse files

qtcapture: fix compilation on 10.6

parent f8d6e492
...@@ -344,11 +344,11 @@ static int Open(vlc_object_t *p_this) ...@@ -344,11 +344,11 @@ static int Open(vlc_object_t *p_this)
msg_Dbg(p_demux, "PAR size %i %i", (int)par_size.width, (int)par_size.height); msg_Dbg(p_demux, "PAR size %i %i", (int)par_size.width, (int)par_size.height);
[p_sys->output setPixelBufferAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [p_sys->output setPixelBufferAttributes: [NSDictionary dictionaryWithObjectsAndKeys:
@(kCVPixelFormatType_422YpCbCr8), (id)kCVPixelBufferPixelFormatTypeKey, [NSNumber numberWithInt:kCVPixelFormatType_422YpCbCr8], (id)kCVPixelBufferPixelFormatTypeKey,
@(p_sys->height), kCVPixelBufferHeightKey, [NSNumber numberWithInt:p_sys->height], kCVPixelBufferHeightKey,
@(p_sys->width), kCVPixelBufferWidthKey, [NSNumber numberWithInt:p_sys->width], kCVPixelBufferWidthKey,
[NSNumber numberWithBool:YES], (id)kCVPixelBufferOpenGLCompatibilityKey, [NSNumber numberWithBool:YES], (id)kCVPixelBufferOpenGLCompatibilityKey,
nil]]; nil]];
[p_sys->output setAutomaticallyDropsLateVideoFrames:YES]; [p_sys->output setAutomaticallyDropsLateVideoFrames:YES];
[p_sys->output setMinimumVideoFrameInterval: (1/25)]; // 25 fps [p_sys->output setMinimumVideoFrameInterval: (1/25)]; // 25 fps
......
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