[vlc-commits] upnp: Handle subtitle attributes

Hugo Beauzée-Luyssen git at videolan.org
Mon May 23 17:45:52 CEST 2016


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Mon May 23 17:45:10 2016 +0200| [7fc931c3de142454c0405fc3a19ee30c951f10a9] | committer: Hugo Beauzée-Luyssen

upnp: Handle subtitle attributes

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

 modules/services_discovery/upnp.cpp |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/modules/services_discovery/upnp.cpp b/modules/services_discovery/upnp.cpp
index 84cd17d..ab282db 100644
--- a/modules/services_discovery/upnp.cpp
+++ b/modules/services_discovery/upnp.cpp
@@ -847,6 +847,11 @@ bool MediaServer::addItem( IXML_Element* itemElement )
                                               i_seconds );
     }
 
+    if ( psz_subtitles == NULL )
+    {
+        psz_subtitles = ixmlElement_getAttribute( p_resource, "pv:subtitleFileUri" );
+    }
+
     input_item_t* p_item =
         input_item_NewExt( psz_resource_url, title, i_duration,
                            ITEM_TYPE_FILE, ITEM_NET );



More information about the vlc-commits mailing list