Commit b1e92e7b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

auhal: Don't spend 16MB of heap for nothing.

This saves 16MB minus 16kB of live memory during audio stream playback on Mac OS X.
parent 8973167f
...@@ -77,7 +77,7 @@ ...@@ -77,7 +77,7 @@
sfm.mChannelsPerFrame, sfm.mBitsPerChannel sfm.mChannelsPerFrame, sfm.mBitsPerChannel
#define FRAMESIZE 2048 #define FRAMESIZE 2048
#define BUFSIZE 0xffffff #define BUFSIZE (FRAMESIZE * 8)
#define AOUT_VAR_SPDIF_FLAG 0xf00000 #define AOUT_VAR_SPDIF_FLAG 0xf00000
/* /*
...@@ -1359,6 +1359,8 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout, ...@@ -1359,6 +1359,8 @@ static OSStatus RenderCallbackAnalog( vlc_object_t *_p_aout,
vlc_memcpy( p_sys->p_remainder_buffer, vlc_memcpy( p_sys->p_remainder_buffer,
&p_buffer->p_buffer[i_second_mData_bytes], &p_buffer->p_buffer[i_second_mData_bytes],
p_sys->i_total_bytes ); p_sys->i_total_bytes );
aout_BufferFree( p_buffer );
break;
} }
else else
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment