summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-12 09:45:00 +0200
committerGitHub <noreply@github.com>2019-08-12 09:45:00 +0200
commit2e0525a16147e662ceedb898797fd4cff596f042 (patch)
tree87e3d1785b44bcdf26652e4b069802c5f8a3c9ae
parent0e823cffbc5e03805e6850bc41e168b0bdecf24e (diff)
parentd8ba9f182480449cb20b253873813c26b0fff07f (diff)
Merge pull request #31310 from SaracenOne/record_fix
Fix recording bus regression.
-rw-r--r--servers/audio/effects/audio_effect_record.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/audio/effects/audio_effect_record.cpp b/servers/audio/effects/audio_effect_record.cpp
index acf27d2bbf..1390ab55c4 100644
--- a/servers/audio/effects/audio_effect_record.cpp
+++ b/servers/audio/effects/audio_effect_record.cpp
@@ -217,7 +217,7 @@ Ref<AudioStreamSample> AudioEffectRecord::get_recording() const {
PoolVector<uint8_t> dst_data;
ERR_FAIL_COND_V(current_instance.is_null(), NULL);
- ERR_FAIL_COND_V(current_instance->recording_data.size(), NULL);
+ ERR_FAIL_COND_V(current_instance->recording_data.size() == 0, NULL);
if (dst_format == AudioStreamSample::FORMAT_8_BITS) {
int data_size = current_instance->recording_data.size();