aboutsummaryrefslogtreecommitdiff
path: root/x11/kdelibs4
diff options
context:
space:
mode:
authorPete Fritchman <petef@FreeBSD.org>2001-12-14 09:00:09 +0000
committerPete Fritchman <petef@FreeBSD.org>2001-12-14 09:00:09 +0000
commit1d0779f6da5ba24f4c3d08ca0c354734c1f89004 (patch)
treebaebfcc0f4cf0eab8bb23c509a201c11e8d47f86 /x11/kdelibs4
parent4ba3e02fef5b21df3d07a5459cfd007a1d91f7ee (diff)
downloadports-1d0779f6da5ba24f4c3d08ca0c354734c1f89004.tar.gz
ports-1d0779f6da5ba24f4c3d08ca0c354734c1f89004.zip
Notes
Diffstat (limited to 'x11/kdelibs4')
-rw-r--r--x11/kdelibs4/files/patch-arts::kde::kplayobjectfactory.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/x11/kdelibs4/files/patch-arts::kde::kplayobjectfactory.cc b/x11/kdelibs4/files/patch-arts::kde::kplayobjectfactory.cc
new file mode 100644
index 000000000000..e6a77b3e34a2
--- /dev/null
+++ b/x11/kdelibs4/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();
+