]> git.pld-linux.org Git - packages/arts.git/blobdiff - arts-1.1.1-streaming-20030317.patch
- streaming poatch (1 of 3): http://rambo.its.tudelft.nl/~ewald/xine/arts-1.1.1-strea...
[packages/arts.git] / arts-1.1.1-streaming-20030317.patch
diff --git a/arts-1.1.1-streaming-20030317.patch b/arts-1.1.1-streaming-20030317.patch
new file mode 100644 (file)
index 0000000..c9d330b
--- /dev/null
@@ -0,0 +1,40 @@
+--- arts-1.1.1/soundserver/soundserverv2_impl.cc.orig  2003-03-17 09:24:17.000000000 +0100
++++ arts-1.1.1/soundserver/soundserverv2_impl.cc       2003-03-17 09:19:54.000000000 +0100
+@@ -119,7 +119,36 @@
+       TraderQuery query;
+       query.supports("Interface","Arts::PlayObject");
+-      query.supports("MimeType", mimetype);
++
++      /* Parse URL protocol */
++      string protocol;
++
++      unsigned int urlProto = url.find( ":/" );
++
++      if (urlProto != std::string::npos)
++      {
++              /* Remove [user[:passwd]@] */
++              unsigned int urlAt = url.find( '@' );
++
++              if (urlAt++ == std::string::npos || urlAt >= urlProto)
++              {
++                      urlAt = 0;
++              }
++
++              /* Remove [:port] */
++              urlProto = url.find( ':', urlAt );
++
++              protocol = std::string( url, urlAt, (urlProto - urlAt) );
++      }
++
++      if (!protocol.empty() && protocol != "file")
++      {
++              query.supports("Protocol", protocol);
++      }
++      if (mimetype != "application/octet-stream")
++      {
++              query.supports("MimeType", mimetype);
++      }
+       string objectType;
This page took 0.028913 seconds and 4 git commands to generate.