]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/portaudio.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / audio_output / portaudio.c
index 6f394afcac44cde5b111d7a25c2943394e79cd51..73080248cf106df8ff5bdf52e8db713e34c0b8de 100644 (file)
@@ -57,6 +57,7 @@ typedef struct pa_thread_t
     vlc_cond_t  signal;
     vlc_mutex_t lock_signal;
     bool  b_signal;
+    bool  b_error;
 
 } pa_thread_t;
 
@@ -142,7 +143,7 @@ static int paCallback( const void *inputBuffer, void *outputBuffer,
         if( p_sys->b_chan_reorder )
         {
             /* Do the channel reordering here */
-            aout_ChannelReorder( p_buffer->p_buffer, p_buffer->i_nb_bytes,
+            aout_ChannelReorder( p_buffer->p_buffer, p_buffer->i_buffer,
                                  p_sys->i_channels, p_sys->pi_chan_table,
                                  p_sys->i_bits_per_sample );
         }