[vlc-commits] auhal: warn if audio buffer is dropped
David Fuhrmann
git at videolan.org
Wed Mar 6 20:30:42 CET 2013
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Mar 6 20:22:02 2013 +0100| [a2e0019f7515fcd1a7695360ac891f0211304f72] | committer: David Fuhrmann
auhal: warn if audio buffer is dropped
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a2e0019f7515fcd1a7695360ac891f0211304f72
---
modules/audio_output/auhal.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index d1f5eb1..353096d 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1185,7 +1185,10 @@ static void Play (audio_output_t * p_aout, block_t * p_block)
p_aout->sys->i_played_length += p_block->i_length;
/* 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) == 0)) {
+ msg_Warn(p_aout, "Audio buffer was dropped");
+ }
+
}
block_Release(p_block);
More information about the vlc-commits
mailing list