Author: ayoung
Date: Thu Dec 1 08:56:33 2011
New Revision: 9561
URL: http://svn.slimdevices.com/jive?rev=9561&view=rev
Log:
bug 17692: Stream proxy capability for SqueezePlay
Protect against SqueezeOS-dependent module in SP Desktop.
Modified:
7.7/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua
Modified: 7.7/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua
URL:
http://svn.slimdevices.com/jive/7.7/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua?rev=9561&r1=9560&r2=9561&view=diff
==============================================================================
--- 7.7/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua
(original)
+++ 7.7/trunk/squeezeplay/src/squeezeplay/share/jive/audio/Playback.lua Thu Dec
1 08:56:33 2011
@@ -17,7 +17,7 @@
local Task = require("jive.ui.Task")
local Timer = require("jive.ui.Timer")
local Framework = require("jive.ui.Framework")
-local Networking = require("jive.net.Networking")
+local hasNetworking, Networking = pcall(require, "jive.net.Networking")
local debug = require("jive.utils.debug")
local log = require("jive.utils.log").logger("audio.decode")
@@ -132,7 +132,7 @@
slimproto:capability(function()
local ip_address, ip_subnet
- local ifObj = Networking:activeInterface()
+ local ifObj = hasNetworking and
Networking:activeInterface()
if ifObj then
ip_address, ip_subnet =
ifObj:getIPAddressAndSubnet()
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins