summaryrefslogtreecommitdiff
path: root/src/decoder/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-07 22:52:38 +0200
committerMax Kellermann <max@musicpd.org>2018-08-07 22:52:38 +0200
commit0ea6a2dd995114bbba387a5df8f429c4c6cc3591 (patch)
treeb1e9bceb499b69bb0cfcb98686e1aaae50cd5830 /src/decoder/plugins
parentcacc1ffdad44ded19edcca77c3308e76642033f3 (diff)
decoder/mpg123: remove obsolete const_cast hack
Diffstat (limited to 'src/decoder/plugins')
-rw-r--r--src/decoder/plugins/Mpg123DecoderPlugin.cxx5
1 files changed, 1 insertions, 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<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",