summaryrefslogtreecommitdiff
path: root/modules/opus
diff options
context:
space:
mode:
authorRobin Hübner <robinhubner@gmail.com>2019-08-11 10:49:53 +0200
committerRobin Hübner <robinhubner@gmail.com>2019-08-12 10:15:54 +0200
commit8aeade74dbed218bf44eec7a5fff76a3526d4e4c (patch)
tree62908d5f47ddb201a3423be1abc427a0767579d7 /modules/opus
parent3418f76a9eab9f496e5b26310bd3bc1125b8119b (diff)
Replace 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG' in rest of 'modules/'
Diffstat (limited to 'modules/opus')
-rw-r--r--modules/opus/audio_stream_opus.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/opus/audio_stream_opus.cpp b/modules/opus/audio_stream_opus.cpp
index 615081d818..d3e8d3c9bb 100644
--- a/modules/opus/audio_stream_opus.cpp
+++ b/modules/opus/audio_stream_opus.cpp
@@ -287,8 +287,7 @@ int AudioStreamPlaybackOpus::mix(int16_t *p_buffer, int p_frames) {
int ret = op_read(opus_file, (opus_int16 *)p_buffer, todo * stream_channels, &current_section);
if (ret < 0) {
playing = false;
- ERR_EXPLAIN("Error reading Opus File: " + file);
- ERR_BREAK(ret < 0);
+ ERR_BREAK_MSG(ret < 0, "Error reading Opus file: " + file + ".");
} else if (ret == 0) { // end of song, reload?
op_free(opus_file);