[vlc-devel] [PATCH] upnp: revert 741b9ebf5449fc11a6318ef78c16dadf4808640d

Steve Lhomme robux4 at videolabs.io
Wed Jun 1 17:23:32 CEST 2016


UPNP fails to browse my Synology NAS (DSM 5.0) after this patch.
After the revert it works and Windows Media Player shares work fine too.
---
 modules/services_discovery/upnp.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 0828ad1..9634ad8 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -926,11 +926,11 @@ IXML_Document* MediaServer::_browseAction( const char* psz_object_id_,
         return NULL;
 
     i_res = UpnpAddToAction( &p_action, "Browse",
-            CONTENT_DIRECTORY_SERVICE_TYPE, "ContainerID", psz_object_id_ ? psz_object_id_ : "0" );
+            CONTENT_DIRECTORY_SERVICE_TYPE, "ObjectID", psz_object_id_ ? psz_object_id_ : "0" );
 
     if ( i_res != UPNP_E_SUCCESS )
     {
-        msg_Dbg( m_access, "AddToAction 'ContainerID' failed: %s",
+        msg_Dbg( m_access, "AddToAction 'ObjectID' failed: %s",
                 UpnpGetErrorMessage( i_res ) );
         goto browseActionCleanup;
     }
-- 
2.8.1



More information about the vlc-devel mailing list