[vlc-commits] qtcapture: fix compilation on 10.6

Felix Paul Kühne git at videolan.org
Mon Jul 29 00:37:16 CEST 2013


vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Jul 29 00:27:44 2013 +0200| [1752691285b6a56fc508d0401d5d9b199495f83f] | committer: Felix Paul Kühne

qtcapture: fix compilation on 10.6
(cherry picked from commit 0ccf1405c045aabbeacb1ccb6eccbc54b96eb5c5)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=1752691285b6a56fc508d0401d5d9b199495f83f
---

 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