decoder/mpg123: remove obsolete const_cast hack
This commit is contained in:
parent
cacc1ffdad
commit
0ea6a2dd99
@ -64,10 +64,7 @@ static bool
|
|||||||
mpd_mpg123_open(mpg123_handle *handle, const char *path_fs,
|
mpd_mpg123_open(mpg123_handle *handle, const char *path_fs,
|
||||||
AudioFormat &audio_format)
|
AudioFormat &audio_format)
|
||||||
{
|
{
|
||||||
/* mpg123_open() wants a writable string :-( */
|
int error = mpg123_open(handle, path_fs);
|
||||||
char *const path2 = const_cast<char *>(path_fs);
|
|
||||||
|
|
||||||
int error = mpg123_open(handle, path2);
|
|
||||||
if (error != MPG123_OK) {
|
if (error != MPG123_OK) {
|
||||||
FormatWarning(mpg123_domain,
|
FormatWarning(mpg123_domain,
|
||||||
"libmpg123 failed to open %s: %s",
|
"libmpg123 failed to open %s: %s",
|
||||||
|
Loading…
Reference in New Issue
Block a user