From 0ea6a2dd995114bbba387a5df8f429c4c6cc3591 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 7 Aug 2018 22:52:38 +0200 Subject: [PATCH] decoder/mpg123: remove obsolete const_cast hack --- src/decoder/plugins/Mpg123DecoderPlugin.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/decoder/plugins/Mpg123DecoderPlugin.cxx b/src/decoder/plugins/Mpg123DecoderPlugin.cxx index 7b7af4a6f..cc019cffc 100644 --- a/src/decoder/plugins/Mpg123DecoderPlugin.cxx +++ b/src/decoder/plugins/Mpg123DecoderPlugin.cxx @@ -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(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",