summaryrefslogtreecommitdiffstats
path: root/media/libcubeb/src/cubeb_audiounit.cpp
diff options
context:
space:
mode:
authoradeshkp <adeshkp@users.noreply.github.com>2019-03-14 09:54:30 -0400
committeradeshkp <adeshkp@users.noreply.github.com>2019-03-14 09:54:30 -0400
commitcf36d986290114b6dd1fcdac6c08283178629742 (patch)
treecbc8e44b9f57a02d2c66a874077f18bc41b361e9 /media/libcubeb/src/cubeb_audiounit.cpp
parent90d1ee25b1de235847605fbc95a9ddebcf5c061d (diff)
downloadUXP-cf36d986290114b6dd1fcdac6c08283178629742.tar
UXP-cf36d986290114b6dd1fcdac6c08283178629742.tar.gz
UXP-cf36d986290114b6dd1fcdac6c08283178629742.tar.lz
UXP-cf36d986290114b6dd1fcdac6c08283178629742.tar.xz
UXP-cf36d986290114b6dd1fcdac6c08283178629742.zip
Fix warnings about unreachable code in cubeb
Diffstat (limited to 'media/libcubeb/src/cubeb_audiounit.cpp')
-rw-r--r--media/libcubeb/src/cubeb_audiounit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libcubeb/src/cubeb_audiounit.cpp b/media/libcubeb/src/cubeb_audiounit.cpp
index f24dfbff2..9483c2795 100644
--- a/media/libcubeb/src/cubeb_audiounit.cpp
+++ b/media/libcubeb/src/cubeb_audiounit.cpp
@@ -1443,12 +1443,12 @@ audiounit_set_buffer_size(cubeb_stream * stm, uint32_t new_size_frames, set_buff
buffer_size_changed_callback,
stm);
if (r != noErr) {
- return CUBEB_ERROR;
if (set_side == INPUT) {
PRINT_ERROR_CODE("AudioUnitAddPropertyListener/input/kAudioDevicePropertyBufferFrameSize", r);
} else {
PRINT_ERROR_CODE("AudioUnitAddPropertyListener/output/kAudioDevicePropertyBufferFrameSize", r);
}
+ return CUBEB_ERROR;
}
if (!stm->buffer_size_change_state && count >= 30) {