mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
squeezelite cmdline error + cspot tweaks
This commit is contained in:
@@ -359,13 +359,13 @@ void output_init_common(log_level level, const char *device, unsigned output_buf
|
||||
buf_init(outputbuf, output_buf_size);
|
||||
if (!outputbuf->buf) {
|
||||
LOG_ERROR("unable to malloc output buffer");
|
||||
exit(0);
|
||||
exit(2);
|
||||
}
|
||||
|
||||
silencebuf = malloc(MAX_SILENCE_FRAMES * BYTES_PER_FRAME);
|
||||
if (!silencebuf) {
|
||||
LOG_ERROR("unable to malloc silence buffer");
|
||||
exit(0);
|
||||
exit(2);
|
||||
}
|
||||
memset(silencebuf, 0, MAX_SILENCE_FRAMES * BYTES_PER_FRAME);
|
||||
|
||||
@@ -373,7 +373,7 @@ void output_init_common(log_level level, const char *device, unsigned output_buf
|
||||
silencebuf_dsd = malloc(MAX_SILENCE_FRAMES * BYTES_PER_FRAME);
|
||||
if (!silencebuf_dsd) {
|
||||
LOG_ERROR("unable to malloc silence dsd buffer");
|
||||
exit(0);
|
||||
exit(2);
|
||||
}
|
||||
dsd_silence_frames((u32_t *)silencebuf_dsd, MAX_SILENCE_FRAMES);
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user