Merge pull request #25959 from neo1973/TagLib_deprecation_warnings
[xbmc.git] / lib / libUPnP / patches / 0017-platinum-don-t-disregard-PLT_MediaObjects-only-for-l.patch
blob35e49044da8f06e9678d82c5b7f6c3dde390af41
1 From e4e282340a1524a5a01cce7ac9c03646d4df14a9 Mon Sep 17 00:00:00 2001
2 From: Joakim Plate <elupus@ecce.se>
3 Date: Sat, 19 Jan 2013 19:00:30 +0100
4 Subject: [PATCH 17/24] platinum: don't disregard PLT_MediaObjects only for
5 lacking resources
7 This could cause us to misscount the number of media objects in a upnp
8 browse request, and re-request items we already had in list giving
9 us duplicated items in lists.
10 ---
11 lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp | 5 -----
12 1 file changed, 5 deletions(-)
14 diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp
15 index af6bc3b..514a1ab 100644
16 --- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp
17 +++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp
18 @@ -722,11 +722,6 @@ PLT_MediaItem::FromDidl(NPT_XmlElementNode* entry)
21 NPT_Result result = PLT_MediaObject::FromDidl(entry);
23 - // make sure we have at least one valid resource
24 - if (m_Resources.GetItemCount() == 0) {
25 - NPT_CHECK_SEVERE(NPT_ERROR_INVALID_PARAMETERS);
26 - }
28 return result;
30 --
31 1.7.11.msysgit.0