Commit 0ea6a2dd authored by Max Kellermann's avatar Max Kellermann

decoder/mpg123: remove obsolete const_cast hack

parent cacc1ffd
......@@ -64,10 +64,7 @@ static bool
mpd_mpg123_open(mpg123_handle *handle, const char *path_fs,
AudioFormat &audio_format)
{
/* mpg123_open() wants a writable string :-( */
char *const path2 = const_cast<char *>(path_fs);
int error = mpg123_open(handle, path2);
int error = mpg123_open(handle, path_fs);
if (error != MPG123_OK) {
FormatWarning(mpg123_domain,
"libmpg123 failed to open %s: %s",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment