2007-08-29, 17:20
I've been playing with UPnP on MythTV and using XBMC as my frontend but wasn't getting any of the debug logging stuff I had hacked into platinum. A little digging led me to xbmc/xbox/Network.cpp:545
Isn't that backwards? Both the SERVICES_UP and SERVICES_DOWN start/stop the UPnP subsystem only if the target platform doesn't have UPnP? This was added in r9454 along with all the other defines for HAS_TIME_SERVER, HAS_WEB_SERVER, etc... all of which are in #ifdef blocks, not #ifndef.
Code:
#ifndef HAS_UPNP
g_application.StartUPnP();
#endif