Generalize the addItem method to handle differently video, audio, image and text
authorBastien Penavayre <swac31@gmail.com>
Wed, 1 Jun 2016 15:08:26 +0000 (17:08 +0200)
committerHugo Beauzée-Luyssen <hugo@beauzee.fr>
Wed, 1 Jun 2016 15:31:40 +0000 (17:31 +0200)
commit673bd7f65e5104f74d2b7b80f0fe85f1461a8e43
tree55d291ea2452a5f0e7f3139f7fc41d6f07b27faf
parent8d3f04dca01380baa51eb5e4724a68c1e384b24b
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@beauzee.fr>
modules/services_discovery/upnp.cpp