mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-24 05:03:17 -05:00
Fixup new libav 10 icy extraction
This commit is contained in:
parent
6a8f93b7df
commit
844a9b43c9
@ -336,8 +336,11 @@ extract_metadata_icy(struct media_file_info *mfi, AVFormatContext *ctx)
|
||||
while (icy_token != NULL)
|
||||
{
|
||||
ptr = strchr(icy_token, ':');
|
||||
if (!ptr || (strlen(ptr) < 3))
|
||||
icy_token = strtok(NULL, "\r\n");
|
||||
if (!ptr || (strlen(ptr) < 4))
|
||||
{
|
||||
icy_token = strtok(NULL, "\r\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
ptr++;
|
||||
if (ptr[0] == ' ')
|
||||
|
@ -280,7 +280,6 @@ scan_metadata_icy(char *url, struct media_file_info *mfi)
|
||||
|
||||
/* Can't count on server support for ICY metadata, so
|
||||
* while waiting for a reply make a parallel call to scan_metadata_ffmpeg.
|
||||
* TODO ffmpeg 2/libav 10 has ICY/Shoutcast support
|
||||
*/
|
||||
no_icy:
|
||||
ret = scan_metadata_ffmpeg(url, mfi);
|
||||
|
Loading…
x
Reference in New Issue
Block a user