Parcourir la source

always resize outputbuf

philippe44 il y a 5 ans
Parent
commit
4fe132b27a
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  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';