[vlc-commits] upnp: Fix root folder ObjectID

Hugo Beauzée-Luyssen git at videolan.org
Fri Apr 17 18:03:41 CEST 2015


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr 17 17:53:45 2015 +0200| [e740f598bf9a33f010e9af9b4545aba05faa7086] | committer: Hugo Beauzée-Luyssen

upnp: Fix root folder ObjectID

This fixes minidlna browsing.
Fix #7690 #14333

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

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

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 221a68d..a80b676 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -275,7 +275,7 @@ bool MediaServerList::addServer( MediaServerDesc* desc )
     msg_Dbg( p_sd_, "Adding server '%s' with uuid '%s'", desc->friendlyName.c_str(), desc->UDN.c_str() );
 
     char* psz_mrl;
-    if( asprintf(&psz_mrl, "upnp://%s?ObjectID=%s", desc->location.c_str(), desc->UDN.c_str() ) < 0 )
+    if( asprintf(&psz_mrl, "upnp://%s?ObjectID=0", desc->location.c_str() ) < 0 )
         return false;
 
     p_input_item = input_item_NewWithTypeExt( psz_mrl, desc->friendlyName.c_str(), 0,



More information about the vlc-commits mailing list