]> git.sesse.net Git - vlc/blobdiff - modules/audio_output/pulse.c
aout: pass audio buffer explicitly to pf_play
[vlc] / modules / audio_output / pulse.c
index a3da6d46a9a8611604a5dc7519b77e1267fe0246..595fb54cb091a702fb9f131f2a61b6085c2530aa 100644 (file)
@@ -444,15 +444,11 @@ static void *data_convert(block_t **pp)
 /**
  * Queue one audio frame to the playabck stream
  */
-static void Play(audio_output_t *aout)
+static void Play(audio_output_t *aout, block_t *block)
 {
     aout_sys_t *sys = aout->sys;
     pa_stream *s = sys->stream;
 
-    /* This function is called exactly once per block in the output FIFO. */
-    block_t *block = aout_FifoPop(&aout->fifo);
-    assert (block != NULL);
-
     const void *ptr = data_convert(&block);
     if (unlikely(ptr == NULL))
         return;