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

audiounit: fix crash

parent 9594f247
......@@ -396,7 +396,7 @@ static OSStatus RenderCallback(vlc_object_t *p_obj,
Float32 *buffer = TPCircularBufferTail(&p_sys->circular_buffer, &availableBytes);
/* check if we have enough data */
if (!availableBytes || p_sys->b_paused) {
if (!availableBytes || p_sys->b_paused ||!buffer) {
/* return an empty buffer so silence is played until we have data */
memset(targetBuffer, 0, ioData->mBuffers[0].mDataByteSize);
} else {
......
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