From a3fe37ad0264069b48ef4dd9aeceb71adc7ed130 Mon Sep 17 00:00:00 2001 From: Evelynne <159239887+Eve00000@users.noreply.github.com> Date: Sat, 19 Oct 2024 16:00:15 +0200 Subject: [PATCH] Update soundsourceffmpeg.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change solves the problem when special charactersare in the name of the directories containing stems. In my case ' •' See issue #13783. --- src/sources/soundsourceffmpeg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()