[vlc-commits] qtcapture: fix compilation on 10.6
Felix Paul Kühne
git at videolan.org
Mon Jul 29 00:28:24 CEST 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 29 00:27:44 2013 +0200| [0ccf1405c045aabbeacb1ccb6eccbc54b96eb5c5] | committer: Felix Paul Kühne
qtcapture: fix compilation on 10.6
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0ccf1405c045aabbeacb1ccb6eccbc54b96eb5c5
---
modules/access/qtcapture.m | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/access/qtcapture.m b/modules/access/qtcapture.m
index c134b25..020edf6 100644
--- a/modules/access/qtcapture.m
+++ b/modules/access/qtcapture.m
@@ -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
More information about the vlc-commits
mailing list