[vlc-commits] audioqueue: fixed incorrect buffer allocation which prevented playback of certain samples

Felix Paul Kühne git at videolan.org
Sat Jan 19 18:50:13 CET 2013


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jan 19 18:48:11 2013 +0100| [e1363fd7dc08248b8022046ebbf2f2104dce0c9c] | committer: Felix Paul Kühne

audioqueue: fixed incorrect buffer allocation which prevented playback of certain samples

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

 modules/audio_output/audioqueue.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/audio_output/audioqueue.c b/modules/audio_output/audioqueue.c
index 2e4c30f..7541ab7 100644
--- a/modules/audio_output/audioqueue.c
+++ b/modules/audio_output/audioqueue.c
@@ -35,8 +35,6 @@
 
 #include <AudioToolBox/AudioToolBox.h>
 
-#define FRAME_SIZE 2048
-
 /*****************************************************************************
  * aout_sys_t: AudioQueue audio output method descriptor
  *****************************************************************************
@@ -153,7 +151,7 @@ static void Play (audio_output_t *p_aout, block_t *p_block)
         AudioQueueBufferRef inBuffer = NULL;
         OSStatus status;
 
-        status = AudioQueueAllocateBuffer(p_aout->sys->audioQueue, FRAME_SIZE * 2, &inBuffer);
+        status = AudioQueueAllocateBuffer(p_aout->sys->audioQueue, p_block->i_buffer, &inBuffer);
         if (status != noErr) {
             msg_Err(p_aout, "buffer alloction failed (%li)", status);
             return;



More information about the vlc-commits mailing list