diff options
author | montellese <montellese@xbmc.org> | 2014-08-02 20:57:46 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2014-08-02 20:57:46 +0200 |
commit | 9916c3e60b5924cd36bb4018e3723659cc077e23 (patch) | |
tree | dffb530db35d47b4766bdc59608ff55f67796663 /lib/libUPnP | |
parent | 44569166fcaa404010a83735700a21cd77bb14fb (diff) |
platinum: only apply Xbox specific "friendlyName" restrictions to Xbox clients
Diffstat (limited to 'lib/libUPnP')
-rw-r--r-- | lib/libUPnP/Platinum/Source/Devices/MediaConnect/PltMediaConnect.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaConnect/PltMediaConnect.cpp b/lib/libUPnP/Platinum/Source/Devices/MediaConnect/PltMediaConnect.cpp index f948dd1d5b..32503feaf3 100644 --- a/lib/libUPnP/Platinum/Source/Devices/MediaConnect/PltMediaConnect.cpp +++ b/lib/libUPnP/Platinum/Source/Devices/MediaConnect/PltMediaConnect.cpp @@ -117,11 +117,16 @@ PLT_MediaConnect::ProcessGetDescription(NPT_HttpRequest& request, PLT_DeviceSignature signature = PLT_HttpHelper::GetDeviceSignature(request); - // XBox needs to see something behind a ':' to even show it - if (m_AddHostname && hostname.GetLength() > 0) { - m_FriendlyName += ": " + hostname; - } else if (m_FriendlyName.Find(":") == -1) { - m_FriendlyName += ": 1"; + if (signature == PLT_DEVICE_XBOX /*|| signature == PLT_SONOS*/) { + // XBox needs to see something behind a ':' to even show it + if (m_AddHostname && hostname.GetLength() > 0) { + m_FriendlyName += ": " + hostname; + } else if (m_FriendlyName.Find(":") == -1) { + m_FriendlyName += ": 1"; + } + } + else if (m_AddHostname && hostname.GetLength() > 0) { + m_FriendlyName += " (" + hostname + ")"; } // change some things based on device signature from request |