[vlc-commits] upnp: revert 741b9ebf5449fc11a6318ef78c16dadf4808640d

Steve Lhomme git at videolan.org
Wed Jun 1 17:33:56 CEST 2016


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Wed Jun  1 17:23:32 2016 +0200| [b036106901f41ad0fac7270409e33451eb9cafa9] | committer: Hugo Beauzée-Luyssen

upnp: revert 741b9ebf5449fc11a6318ef78c16dadf4808640d

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.

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 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 81c3c1c..776280b 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -1041,11 +1041,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;
     }



More information about the vlc-commits mailing list