Skip to content

Commit fc7d16a

Browse files
Small fix
1 parent ed30696 commit fc7d16a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ESP32_VS1053_Stream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ bool ESP32_VS1053_Stream::connecttohost(const char *url, const char *username,
323323
_chunkedResponse = _http->header(ENCODING).equalsIgnoreCase("chunked") ? true : false;
324324
_offset = (_remainingBytes == -1) ? 0 : offset;
325325
_metaDataStart = _http->header(ICY_METAINT).toInt();
326-
_musicDataPosition = _metaDataStart ? 0 : -100;
327-
if (strcmp(_url, url) || !_offset)
326+
_musicDataPosition = _metaDataStart ? 0 : -1;
327+
if (strcmp(_url, url))
328328
{
329329
_vs1053->stopSong();
330330
snprintf(_url, sizeof(_url), "%s", url);

0 commit comments

Comments
 (0)