Constness fix (or rather, hack)

This commit is contained in:
Nicolay Korslund 2010-08-13 22:59:56 +02:00
parent 5b8e8d6b48
commit 85fa6d3923

View file

@ -94,8 +94,8 @@ Mpg123Source::Mpg123Source(const std::string &file)
mpg123_handle *mhh = (mpg123_handle*)mh;
// Open the file
err = mpg123_open(mhh, file.c_str());
// Open the file (hack around constness)
err = mpg123_open(mhh, (char*)file.c_str());
checkError(err, mh);
// Get the format