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

qtcapture: fix compilation on 10.6

parent f8d6e492
......@@ -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);
[p_sys->output setPixelBufferAttributes: [NSDictionary dictionaryWithObjectsAndKeys:
@(kCVPixelFormatType_422YpCbCr8), (id)kCVPixelBufferPixelFormatTypeKey,
@(p_sys->height), kCVPixelBufferHeightKey,
@(p_sys->width), kCVPixelBufferWidthKey,
[NSNumber numberWithBool:YES], (id)kCVPixelBufferOpenGLCompatibilityKey,
nil]];
[NSNumber numberWithInt:kCVPixelFormatType_422YpCbCr8], (id)kCVPixelBufferPixelFormatTypeKey,
[NSNumber numberWithInt:p_sys->height], kCVPixelBufferHeightKey,
[NSNumber numberWithInt:p_sys->width], kCVPixelBufferWidthKey,
[NSNumber numberWithBool:YES], (id)kCVPixelBufferOpenGLCompatibilityKey,
nil]];
[p_sys->output setAutomaticallyDropsLateVideoFrames:YES];
[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