Merge pull request #25959 from neo1973/TagLib_deprecation_warnings
[xbmc.git] / lib / libUPnP / patches / 0007-platinum-also-support-sort-criterias-in-format-res-p.patch
blobda4d9363b55b1882107625573759b5b55fdc01c5
1 From 091b91cdba14242c965dc5a41d74ba00386a5d91 Mon Sep 17 00:00:00 2001
2 From: Alasdair Campbell <alcoheca@gmail.com>
3 Date: Fri, 14 Sep 2012 11:12:03 +0100
4 Subject: [PATCH 07/24] platinum: also support sort criterias in format
5 res@<property>
7 ---
8 lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp | 2 ++
9 1 file changed, 2 insertions(+)
11 diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp
12 index b8ce964..e275069 100644
13 --- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp
14 +++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaServer.cpp
15 @@ -342,6 +342,8 @@ PLT_MediaServer::ParseSort(const NPT_String& sort, NPT_List<NPT_String>& list)
16 NPT_List<NPT_String>::Iterator property = list.GetFirstItem();
17 while (property) {
18 NPT_List<NPT_String> parsed_property = (*property).Split(":");
19 + if (parsed_property.GetItemCount() != 2)
20 + parsed_property = (*property).Split("@");
21 if (parsed_property.GetItemCount() != 2 ||
22 (!(*property).StartsWith("-") && !(*property).StartsWith("+"))) {
23 NPT_LOG_WARNING_1("Invalid SortCriteria property %s", (*property).GetChars());
24 --
25 1.7.11.msysgit.0