[vlc-devel] [PATCH 3/3] pulse: Trivial compiler warning fixes in debug mode

Colin Guthrie cguthrie at mandriva.org
Tue Jun 8 01:34:45 CEST 2010


---
 modules/audio_output/pulse.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index 0a6b2e0..c374bbe 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -460,7 +460,7 @@ static void stream_request_cb(pa_stream *s, size_t length, void *userdata) {
 
     size_t buffer_size = p_sys->buffer_size;
 
-    PULSE_DEBUG( "Pulse stream request %d", length);
+    PULSE_DEBUG( "Pulse stream request %d", (int)length);
 
     do{
         aout_buffer_t *   p_buffer = NULL;
@@ -485,7 +485,7 @@ static void stream_request_cb(pa_stream *s, size_t length, void *userdata) {
 
         if ( p_buffer != NULL )
         {
-            PULSE_DEBUG( "Pulse stream request write buffer %d", p_buffer->i_buffer);
+            PULSE_DEBUG( "Pulse stream request write buffer %d", (int)p_buffer->i_buffer);
             pa_stream_write(p_sys->stream, p_buffer->p_buffer, p_buffer->i_buffer, NULL, 0, PA_SEEK_RELATIVE);
             length -= p_buffer->i_buffer;
             aout_BufferFree( p_buffer );
-- 
1.7.1




More information about the vlc-devel mailing list