[vlc-commits] Generalize the addItem method to handle differently video, audio, image and text

Bastien Penavayre git at videolan.org
Wed Jun 1 17:31:51 CEST 2016


vlc | branch: master | Bastien Penavayre <swac31 at gmail.com> | Wed Jun  1 17:08:26 2016 +0200| [673bd7f65e5104f74d2b7b80f0fe85f1461a8e43] | committer: Hugo Beauzée-Luyssen

Generalize the addItem method to handle differently video, audio, image and text

Instead of using the MRL of the first subitem as the item's MRL and ignoring all rest,
now reads the "upnp:class" field of the item and the "protocolInfo" field of
each subitem to use those accordingly.
The result is that artworks contained as subitems are now used along with subtitles as slaves.

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

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

 modules/services_discovery/upnp.cpp |  240 ++++++++++++++++++++++++-----------
 1 file changed, 163 insertions(+), 77 deletions(-)

Diff:   http://git.videolan.org/gitweb.cgi/vlc.git/?a=commitdiff;h=673bd7f65e5104f74d2b7b80f0fe85f1461a8e43


More information about the vlc-commits mailing list