Author: agrundman
Date: Thu Apr 22 19:43:12 2010
New Revision: 8725

URL: http://svn.slimdevices.com/jive?rev=8725&view=rev
Log:
Support protocol handlers that want to subclass spdr

Modified:
    7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua

Modified: 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua?rev=8725&r1=8724&r2=8725&view=diff
==============================================================================
--- 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua 
(original)
+++ 7.5/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua Thu Apr 
22 19:43:12 2010
@@ -589,8 +589,14 @@
                local serverIp = data.serverIp == 0 and 
self.slimproto:getServerIp() or data.serverIp
 
                if self.flags == 0x10 then
-                       -- custom handler 
+                       -- custom handler
                        local handlerId = string.match(self.header, 
"spdr://(%w-)%?")
+
+                       -- Also support URLs of the format <protocol>://...
+                       if not handlerId then
+                               handlerId = string.match(self.header, 
"^(%w-)://")
+                       end
+
                        if streamHandlers[handlerId] then
                                log:info("using custom handler ", handlerId)
                                streamHandlers[handlerId](self, data, decode)

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to