mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 16:25:03 -05:00
Code style
This commit is contained in:
parent
64ef66f030
commit
3655e26703
2
src/db.c
2
src/db.c
@ -465,7 +465,7 @@ unicode_fixup_mfi(struct media_file_info *mfi)
|
||||
if (!*field)
|
||||
continue;
|
||||
|
||||
ret = unicode_fixup_string(*field,"ascii");
|
||||
ret = unicode_fixup_string(*field, "ascii");
|
||||
if (ret != *field)
|
||||
{
|
||||
free(*field);
|
||||
|
@ -588,7 +588,7 @@ fixup_tags(struct media_file_info *mfi)
|
||||
/* fname is left untouched by unicode_fixup_mfi() for
|
||||
* obvious reasons, so ensure it is proper UTF-8
|
||||
*/
|
||||
mfi->title = unicode_fixup_string(mfi->fname,"ascii");
|
||||
mfi->title = unicode_fixup_string(mfi->fname, "ascii");
|
||||
if (mfi->title == mfi->fname)
|
||||
mfi->title = strdup(mfi->fname);
|
||||
}
|
||||
|
@ -444,11 +444,11 @@ metadata_header_get(struct http_icy_metadata *metadata, AVFormatContext *fmtctx)
|
||||
*/
|
||||
|
||||
if ((strncmp(icy_token, "icy-name", strlen("icy-name")) == 0) && !metadata->name)
|
||||
metadata->name = strdup(unicode_fixup_string(ptr,headerenc));
|
||||
metadata->name = strdup(unicode_fixup_string(ptr, headerenc));
|
||||
else if ((strncmp(icy_token, "icy-description", strlen("icy-description")) == 0) && !metadata->description)
|
||||
metadata->description = strdup(unicode_fixup_string(ptr,headerenc));
|
||||
metadata->description = strdup(unicode_fixup_string(ptr, headerenc));
|
||||
else if ((strncmp(icy_token, "icy-genre", strlen("icy-genre")) == 0) && !metadata->genre)
|
||||
metadata->genre = strdup(unicode_fixup_string(ptr,headerenc));
|
||||
metadata->genre = strdup(unicode_fixup_string(ptr, headerenc));
|
||||
|
||||
icy_token = strtok(NULL, "\r\n");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user