PlaylistSave: remove redundant backslash conversion
This is already being done by FixSeparators(), called from PathToUTF8().
This commit is contained in:
@@ -129,22 +129,9 @@ playlist_load_spl(struct playlist &playlist, PlayerControl &pc,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((playlist.AppendURI(pc, uri_utf8.c_str())) != PlaylistResult::SUCCESS) {
|
if ((playlist.AppendURI(pc, uri_utf8.c_str())) != PlaylistResult::SUCCESS)
|
||||||
/* for windows compatibility, convert slashes */
|
FormatError(playlist_domain,
|
||||||
char *temp2 = xstrdup(uri_utf8.c_str());
|
"can't add file \"%s\"", uri_utf8.c_str());
|
||||||
char *p = temp2;
|
|
||||||
while (*p) {
|
|
||||||
if (*p == '\\')
|
|
||||||
*p = '/';
|
|
||||||
p++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (playlist.AppendURI(pc, temp2) != PlaylistResult::SUCCESS)
|
|
||||||
FormatError(playlist_domain,
|
|
||||||
"can't add file \"%s\"", temp2);
|
|
||||||
|
|
||||||
free(temp2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user