[vlc-commits] upnp: Work around some lack of limit understanding from a few servers

Hugo Beauzée-Luyssen git at videolan.org
Wed May 25 19:06:21 CEST 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed May 25 18:59:05 2016 +0200| [225e4894a181638789d41c7f31346fa3165148e6] | committer: Hugo Beauzée-Luyssen

upnp: Work around some lack of limit understanding from a few servers

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=225e4894a181638789d41c7f31346fa3165148e6
---

 modules/services_discovery/upnp.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 570e6c1..facf855 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -1025,7 +1025,8 @@ bool MediaServer::fetchContents()
     IXML_Document* p_response = _browseAction( psz_objectId_,
                                       "BrowseDirectChildren",
                                       "*",
-                                      "0", /* RequestedCount */
+                                      // Some servers don't understand "0" as "no-limit"
+                                      "1000", /* RequestedCount */
                                       "" /* SortCriteria */
                                       );
     if ( !p_response )



More information about the vlc-commits mailing list