From e4f0f25febff9ccc85e4be73cbdb001bf4bd37c3 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 1 Jun 2013 12:55:59 +1000 Subject: [PATCH] Use utf-8 instead of the local system encoding when passing filenames to gstreamer in the chromaprinter. Might fix issue 3703. --- src/musicbrainz/chromaprinter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/musicbrainz/chromaprinter.cpp b/src/musicbrainz/chromaprinter.cpp index d54f921ab..b3766b673 100644 --- a/src/musicbrainz/chromaprinter.cpp +++ b/src/musicbrainz/chromaprinter.cpp @@ -103,7 +103,7 @@ QString Chromaprinter::CreateFingerprint() { g_object_set(G_OBJECT(sink), "emit-signals", TRUE, NULL); // Set the filename - g_object_set(src, "location", filename_.toLocal8Bit().constData(), NULL); + g_object_set(src, "location", filename_.toUtf8().constData(), NULL); // Connect signals CHECKED_GCONNECT(decode, "new-decoded-pad", &NewPadCallback, this);