summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
Diffstat (limited to 'audio')
-rw-r--r--audio/out/ao_coreaudio.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/audio/out/ao_coreaudio.c b/audio/out/ao_coreaudio.c
index 2ce5b81457..9407807c9d 100644
--- a/audio/out/ao_coreaudio.c
+++ b/audio/out/ao_coreaudio.c
@@ -124,11 +124,10 @@ static OSStatus render_cb_digital(
AudioBuffer buf = out_data->mBuffers[p->i_stream_index];
int requested = buf.mDataByteSize;
- if (p->b_muted) {
+ if (p->b_muted)
mp_ring_drain(p->buffer, requested);
- } else {
- buf.mDataByteSize = mp_ring_read(p->buffer, buf.mData, requested);
- }
+ else
+ mp_ring_read(p->buffer, buf.mData, requested);
return noErr;
}