aboutsummaryrefslogtreecommitdiff
path: root/audio/rate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'audio/rate.cpp')
-rw-r--r--audio/rate.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/audio/rate.cpp b/audio/rate.cpp
index 83abd6150b..0fc23a8a54 100644
--- a/audio/rate.cpp
+++ b/audio/rate.cpp
@@ -298,6 +298,9 @@ public:
_bufferSize = osamp;
}
+ if (!_buffer)
+ error("[CopyRateConverter::flow] Cannot allocate memory for temp buffer");
+
// Read up to 'osamp' samples into our temporary buffer
len = input.readBuffer(_buffer, osamp);