Commit cf0fafe6 authored by Felix Paul Kühne's avatar Felix Paul Kühne

auhal: remove misleading error check since TPCircularBufferProduceBytes' return value is void

parent 8ce690a5
...@@ -1197,9 +1197,7 @@ static void Play (audio_output_t * p_aout, block_t * p_block) ...@@ -1197,9 +1197,7 @@ static void Play (audio_output_t * p_aout, block_t * p_block)
} }
/* move data to buffer */ /* move data to buffer */
if (unlikely(TPCircularBufferProduceBytes(&p_sys->circular_buffer, p_block->p_buffer, p_block->i_buffer) == 0)) { TPCircularBufferProduceBytes(&p_sys->circular_buffer, p_block->p_buffer, p_block->i_buffer);
msg_Warn(p_aout, "Audio buffer was dropped");
}
if (!p_sys->i_bytes_per_sample) if (!p_sys->i_bytes_per_sample)
p_sys->i_bytes_per_sample = p_block->i_buffer / p_block->i_nb_samples; p_sys->i_bytes_per_sample = p_block->i_buffer / p_block->i_nb_samples;
......
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