[vlc-commits] auhal: remove misleading error check since TPCircularBufferProduceBytes' return value is void
Felix Paul Kühne
git at videolan.org
Mon Apr 1 18:13:32 CEST 2013
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon Apr 1 18:12:52 2013 +0200| [cf0fafe62916749297497dce5d87a8daf1b87d54] | committer: Felix Paul Kühne
auhal: remove misleading error check since TPCircularBufferProduceBytes' return value is void
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cf0fafe62916749297497dce5d87a8daf1b87d54
---
modules/audio_output/auhal.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/modules/audio_output/auhal.c b/modules/audio_output/auhal.c
index 370473e..b88aeaf 100644
--- a/modules/audio_output/auhal.c
+++ b/modules/audio_output/auhal.c
@@ -1197,9 +1197,7 @@ static void Play (audio_output_t * p_aout, block_t * p_block)
}
/* move data to 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");
- }
+ TPCircularBufferProduceBytes(&p_sys->circular_buffer, p_block->p_buffer, p_block->i_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