[vlc-devel] [PATCH] Support for LG N1A1 UPnP server

fabrizio.ge at tiscali.it fabrizio.ge at tiscali.it
Mon Jan 5 23:58:34 CET 2015


  Hello.

I tried connecting to my LG N1A1 (a NAS device which also
acts as UPnP server, admittedly rather old and cheap, but working with
other devices) using VLC's UPnP support, but VLC replies:

upnp services
discovery error: BROWSE() RESPONSE PARSING FAILED 
In upnp.cpp, there's
a "ugly hack" ("The DIDL document is extracted from the Result tag, then
wrapped into a valid XML header and a new root tag"): this actually
break parsing the reply by the LG N1A1.

Attached is a patch which
repairs this: it tries parsing the reply as is, and uses the "ugly hack"
as a fallback only. It makes the LG N1A1 work, and does not break the
other devices I tried, but I haven't tried it with many devices. Also
attached is an XML snippet of a reply by the LG N1A1 UPnP
server.

Regards,
Fabrizio
  


Connetti gratis il mondo con la nuova indoona:  hai la chat, le chiamate, le video chiamate e persino le chiamate di gruppo.
E chiami gratis anche i numeri fissi e mobili nel mondo!
Scarica subito l’app Vai su https://www.indoona.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150105/9526c6cf/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: lg n1a1.xml
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150105/9526c6cf/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upnp.patch
Type: text/x-diff
Size: 2003 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20150105/9526c6cf/attachment.patch>


More information about the vlc-devel mailing list