[vlc-commits] QTsound: fixes format string and integer times

Jean-Baptiste Kempf git at videolan.org
Fri Dec 2 00:24:09 CET 2011


vlc/vlc-1.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec  1 12:16:46 2011 +0100| [f71db53b1bef3971c208c06bd80ead20d574c8cd] | committer: Jean-Baptiste Kempf

QTsound: fixes format string and integer times

Thou shalt use %ld for NSInteger and %lu for NSUInteger
(cherry picked from commit 03e681166f2d674ba6c43481de4fd8e8270ee5a3)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=f71db53b1bef3971c208c06bd80ead20d574c8cd
---

 modules/access/qtsound.m |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/access/qtsound.m b/modules/access/qtsound.m
index c5634f9..19f8d64 100644
--- a/modules/access/qtsound.m
+++ b/modules/access/qtsound.m
@@ -288,11 +288,11 @@ static int Open( vlc_object_t *p_this )
 
         goto error;
     }
-    int iaudio;
+    unsigned iaudio;
     for(iaudio = 0; iaudio < [myAudioDevices count]; iaudio++){
         QTCaptureDevice *qtk_audioDevice;
         qtk_audioDevice = [myAudioDevices objectAtIndex:iaudio];
-        msg_Dbg( p_demux, "qtsound audio %d/%d localizedDisplayName: %s uniqueID: %s", iaudio, [myAudioDevices count], [[qtk_audioDevice localizedDisplayName] UTF8String], [[qtk_audioDevice uniqueID] UTF8String]);
+        msg_Dbg( p_demux, "qtsound audio %u/%lu localizedDisplayName: %s uniqueID: %s", iaudio, [myAudioDevices count], [[qtk_audioDevice localizedDisplayName] UTF8String], [[qtk_audioDevice uniqueID] UTF8String]);
         if([[[qtk_audioDevice localizedDisplayName]stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] isEqualToString:qtk_curraudiodevice_uid]){
             msg_Dbg( p_demux, "Device found" );
             break;
@@ -321,7 +321,7 @@ static int Open( vlc_object_t *p_this )
 
     if( ![p_sys->audiodevice open: &o_returnedAudioError] )
     {
-        msg_Err( p_demux, "Unable to open the audio capture device (%d)", [o_returnedAudioError code] );
+        msg_Err( p_demux, "Unable to open the audio capture device (%ld)", [o_returnedAudioError code] );
         goto error;
     }
 
@@ -470,14 +470,14 @@ static int Open( vlc_object_t *p_this )
     success = [p_sys->session addInput:audioInput error: &o_returnedAudioError];
     if( !success )
     {
-        msg_Err( p_demux, "the audio capture device could not be added to capture session (%d)", [o_returnedAudioError code] );
+        msg_Err( p_demux, "the audio capture device could not be added to capture session (%ld)", [o_returnedAudioError code] );
         goto error;
     }
 
     success = [p_sys->session addOutput:p_sys->audiooutput error: &o_returnedAudioError];
     if( !success )
     {
-        msg_Err( p_demux, "audio output could not be added to capture session (%d)", [o_returnedAudioError code] );
+        msg_Err( p_demux, "audio output could not be added to capture session (%ld)", [o_returnedAudioError code] );
         goto error;
     }
 



More information about the vlc-commits mailing list