Skip to content

Commit e9b6c1d

Browse files
committed
RedisBuffer avoid assert
1 parent 758a884 commit e9b6c1d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/AudioTools/Communication/RedisBuffer.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,9 @@ class RedisBuffer : public BaseBuffer<T> {
398398

399399
LOGI("RedisBuffer: %d of %d items",(int) read_buf.available(),(int) read_buf.size() );
400400
// if this fails the
401-
assert(read_buf.isFull() );
401+
if(!read_buf.isFull() ){
402+
LOGW("RedisBuffer:fillReadBuffer: not enough data read from Redis");
403+
}
402404
}
403405
};
404406

tests-cmake/codec/mp4-parser/mp4-parser.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void setup() {
2323
return;
2424
}
2525

26-
file = SD.open("/home/pschatzmann/Music/m4a/1-07 All You Need Is Love.m4a");
26+
file = SD.open("/home/pschatzmann/Music/m4a/aac.m4a");
2727
if (!file.isOpen()) {
2828
Serial.println("Failed to open file!");
2929
return;

0 commit comments

Comments
 (0)