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
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();
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());