From bc1e17915d0c716ff5573965699213f8789480f5 Mon Sep 17 00:00:00 2001 From: djurban Date: Fri, 28 Mar 2003 20:56:00 +0000 Subject: [PATCH] - streaming poatch (1 of 3): http://rambo.its.tudelft.nl/~ewald/xine/arts-1.1.1-streaming-20030317.patch Changed files: arts-1.1.1-streaming-20030317.patch -> 1.1 --- arts-1.1.1-streaming-20030317.patch | 40 +++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 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 index 0000000..c9d330b --- /dev/null +++ b/arts-1.1.1-streaming-20030317.patch @@ -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; + -- 2.44.0