diff options
author | petef <petef@FreeBSD.org> | 2001-12-14 09:00:09 +0000 |
---|---|---|
committer | petef <petef@FreeBSD.org> | 2001-12-14 09:00:09 +0000 |
commit | 99f465d86ca1c1182351565db0bc552d4f548d14 (patch) | |
tree | 25e558ccd2a447ef67b71d1f54fae781f1b49c30 /x11/kdelibs3 | |
parent | 1c9b73c856879a5181f4c0efeed448c51038fcf5 (diff) | |
download | FreeBSD-ports-99f465d86ca1c1182351565db0bc552d4f548d14.zip FreeBSD-ports-99f465d86ca1c1182351565db0bc552d4f548d14.tar.gz |
Fix sound-preview on non-ASCII filenames.
Submitted by: Alexander N. Kabaev <ak03@gte.com>
Diffstat (limited to 'x11/kdelibs3')
-rw-r--r-- | x11/kdelibs3/files/patch-arts::kde::kplayobjectfactory.cc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/x11/kdelibs3/files/patch-arts::kde::kplayobjectfactory.cc b/x11/kdelibs3/files/patch-arts::kde::kplayobjectfactory.cc new file mode 100644 index 0000000..e6a77b3 --- /dev/null +++ b/x11/kdelibs3/files/patch-arts::kde::kplayobjectfactory.cc @@ -0,0 +1,29 @@ +$FreeBSD$ + +--- arts/kde/kplayobjectfactory.cc.orig Sat May 19 13:07:41 2001 ++++ arts/kde/kplayobjectfactory.cc Fri Dec 7 10:54:40 2001 +@@ -20,6 +20,7 @@ + */ + + #include <kio/kmimetype.h> ++#include <qfile.h> + #include "kplayobject.h" + #include "artskde.h" + #include "kplayobjectfactory.h" +@@ -49,13 +50,13 @@ + if(mimetype == "application/octet-stream" && m_allowStreaming) + { + Arts::KIOInputStream instream; +- instream.openURL(url.prettyURL().latin1()); ++ instream.openURL(url.url().latin1()); + + // TODO: what else than hardcoding audio/x-mp3 ? + return new KPlayObject(m_server.createPlayObjectForStream(instream, string("audio/x-mp3"), createBUS), true); + } + else +- return new KPlayObject(m_server.createPlayObjectForURL(string(url.path().latin1()), string(mimetype.latin1()), createBUS), false); ++ return new KPlayObject(m_server.createPlayObjectForURL(string(QFile::encodeName(url.path())), string(mimetype.latin1()), createBUS), false); + } + else + return new KPlayObject(); + |