소스 검색

always resize outputbuf

philippe44 5 년 전
부모
커밋
4fe132b27a
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      components/squeezelite/slimproto.c

+ 2 - 4
components/squeezelite/slimproto.c

@@ -371,10 +371,8 @@ static void process_strm(u8_t *pkt, int len) {
 			sendSTAT("STMc", 0);
 			sentSTMu = sentSTMo = sentSTMl = false;
 			LOCK_O;
-			if (output.external) {
-				output.external = false;
-				_buf_resize(outputbuf, output.init_size);
-			}	
+			output.external = false;
+			_buf_resize(outputbuf, output.init_size);
 			output.threshold = strm->output_threshold;
 			output.next_replay_gain = unpackN(&strm->replay_gain);
 			output.fade_mode = strm->transition_type - '0';