mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 12:37:01 +03:00
pause: do not change state when already off
This commit is contained in:
@@ -320,7 +320,7 @@ static void process_strm(u8_t *pkt, int len) {
|
|||||||
output.pause_frames = interval * status.current_sample_rate / 1000;
|
output.pause_frames = interval * status.current_sample_rate / 1000;
|
||||||
if (interval) {
|
if (interval) {
|
||||||
output.state = OUTPUT_PAUSE_FRAMES;
|
output.state = OUTPUT_PAUSE_FRAMES;
|
||||||
} else {
|
} else if (output.state != OUTPUT_OFF) {
|
||||||
output.state = OUTPUT_STOPPED;
|
output.state = OUTPUT_STOPPED;
|
||||||
output.stop_time = gettime_ms();
|
output.stop_time = gettime_ms();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user