Code style

This commit is contained in:
ejurgensen 2015-06-02 23:10:04 +02:00
parent 64ef66f030
commit 3655e26703
3 changed files with 5 additions and 5 deletions

View File

@ -465,7 +465,7 @@ unicode_fixup_mfi(struct media_file_info *mfi)
if (!*field) if (!*field)
continue; continue;
ret = unicode_fixup_string(*field,"ascii"); ret = unicode_fixup_string(*field, "ascii");
if (ret != *field) if (ret != *field)
{ {
free(*field); free(*field);

View File

@ -588,7 +588,7 @@ fixup_tags(struct media_file_info *mfi)
/* fname is left untouched by unicode_fixup_mfi() for /* fname is left untouched by unicode_fixup_mfi() for
* obvious reasons, so ensure it is proper UTF-8 * 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) if (mfi->title == mfi->fname)
mfi->title = strdup(mfi->fname); mfi->title = strdup(mfi->fname);
} }

View File

@ -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) 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) 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) 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"); icy_token = strtok(NULL, "\r\n");
} }