pause: change stage only when not already off

This commit is contained in:
Philippe G
2020-07-12 12:41:01 -07:00
parent cf81182dae
commit af4472dbe9

View File

@@ -320,7 +320,7 @@ static void process_strm(u8_t *pkt, int len) {
output.pause_frames = interval * status.current_sample_rate / 1000;
if (interval) {
output.state = OUTPUT_PAUSE_FRAMES;
} else {
} else if (output.state != OUTPUT_OFF) {
output.state = OUTPUT_STOPPED;
output.stop_time = gettime_ms();
}