diff --git a/src/sources/soundsourceffmpeg.cpp b/src/sources/soundsourceffmpeg.cpp index 5c2d9a46a72..cb81f9ea9e6 100644 --- a/src/sources/soundsourceffmpeg.cpp +++ b/src/sources/soundsourceffmpeg.cpp @@ -290,7 +290,7 @@ AVFormatContext* SoundSourceFFmpeg::openInputFile( // Open input file and allocate/initialize AVFormatContext const int avformat_open_input_result = avformat_open_input( - &pavInputFormatContext, fileName.toLocal8Bit().constData(), nullptr, nullptr); + &pavInputFormatContext, fileName.toUtf8().constData(), nullptr, nullptr); if (avformat_open_input_result != 0) { DEBUG_ASSERT(avformat_open_input_result < 0); kLogger.warning().noquote()