diff options
author | Joakim Plate <elupus@ecce.se> | 2013-01-19 19:00:30 +0100 |
---|---|---|
committer | Joakim Plate <elupus@ecce.se> | 2013-01-19 19:00:30 +0100 |
commit | 2e02d53d181ce659e0d9c1e239ae1ad0e6eb4be6 (patch) | |
tree | 8c4642e18c7839dbc8b6951992ea00057879e019 /lib | |
parent | 4f985050532204a4fb9dae93a9d395b032ee355d (diff) |
Platinum: don't disregard PLT_MediaObjects only for lacking resources
This could cause us to misscount the number of media objects in a upnp
browse request, and re-request items we already had in list giving
us duplicated items in lists.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp index 38560015dc..f4d793d7b6 100644 --- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp +++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltMediaItem.cpp @@ -723,11 +723,6 @@ PLT_MediaItem::FromDidl(NPT_XmlElementNode* entry) } NPT_Result result = PLT_MediaObject::FromDidl(entry); - - // make sure we have at least one valid resource - if (m_Resources.GetItemCount() == 0) { - NPT_CHECK_SEVERE(NPT_ERROR_INVALID_PARAMETERS); - } return result; } |