Browse Source

pause: do not change state when already off

Philippe G 4 năm trước cách đây
mục cha
commit
a9cfecfc91
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      components/squeezelite/slimproto.c

+ 1 - 1
components/squeezelite/slimproto.c

@@ -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();
 			}