diff --git a/components/audio_stream/http_stream.c b/components/audio_stream/http_stream.c index 88519708b..b4699e41d 100644 --- a/components/audio_stream/http_stream.c +++ b/components/audio_stream/http_stream.c @@ -415,7 +415,7 @@ static esp_err_t _resolve_playlist(audio_element_handle_t self, const char *uri) if (http->hls_key->key_url == NULL) { ESP_LOGE(TAG, "No memory for hls key url"); return ESP_FAIL; - } + } } http->hls_key->sequence_no = hls_playlist_get_sequence_no(hls); } @@ -569,7 +569,7 @@ static esp_err_t _http_open(audio_element_handle_t self) ESP_LOGE(TAG, "Error open connection, uri = NULL"); return ESP_FAIL; } - + ESP_LOGD(TAG, "URI=%s", uri); // if not initialize http client, initial it if (http->client == NULL) { @@ -743,8 +743,8 @@ static int _http_read(audio_element_handle_t self, char *buffer, int len, TickTy return ESP_OK; } else { if (http->hls_key) { - int ret = esp_aes_crypt_cbc(&http->hls_key->aes_ctx, ESP_AES_DECRYPT, - rlen, (unsigned char*)http->hls_key->key.iv, + int ret = esp_aes_crypt_cbc(&http->hls_key->aes_ctx, ESP_AES_DECRYPT, + rlen, (unsigned char*)http->hls_key->key.iv, (unsigned char*)buffer, (unsigned char*)buffer); if (rlen % 16 != 0) { ESP_LOGE(TAG, "Data length %d not aligned", rlen); diff --git a/components/audio_stream/include/http_stream.h b/components/audio_stream/include/http_stream.h index 1cf6cc748..843c27d7f 100644 --- a/components/audio_stream/include/http_stream.h +++ b/components/audio_stream/include/http_stream.h @@ -90,7 +90,7 @@ typedef struct { bundle for server verification, must be enabled in menuconfig */ int request_size; /*!< Request data size each time from `http_client` Defaults use DEFAULT_ELEMENT_BUFFER_LENGTH if set to 0 - Need care this setting if audio frame size is small and want low latency playback */ + Need care this setting if audio frame size is small and want low latency playback */ int request_range_size; /*!< Range size setting for header `Range: bytes=start-end` Request full range of resource if set to 0 Range size bigger than request size is recommended */