[vlc-commits] auhal: fix cf0fafe6
Felix Paul Kühne
git at videolan.org
Thu Apr 4 19:31:41 CEST 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Apr 4 19:31:31 2013 +0200| [9ccbf01ebaf211e78636e0f5d485fa9080a2fa7c] | committer: Felix Paul Kühne
auhal: fix cf0fafe6
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ccbf01ebaf211e78636e0f5d485fa9080a2fa7c
---
modules/audio_output/auhal.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 6086b8b..462b14d 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1197,7 +1197,8 @@ static void Play (audio_output_t * p_aout, block_t * p_block)
}
/* move data to buffer */
- TPCircularBufferProduceBytes(&p_sys->circular_buffer, p_block->p_buffer, p_block->i_buffer);
+ if (unlikely(!TPCircularBufferProduceBytes(&p_sys->circular_buffer, p_block->p_buffer, p_block->i_buffer)))
+ msg_Warn(p_aout, "dropped buffer");
if (!p_sys->i_bytes_per_sample)
p_sys->i_bytes_per_sample = p_block->i_buffer / p_block->i_nb_samples;
More information about the vlc-commits
mailing list