Skip to content

upnp: fix browsing of certain servers

This is a partial revert of 785c6dfe. Some servers (notably PLEX, UMS, and some TV sets) amend the exposed media type with additional subtypes for further differentiation not relevant to VLC, so it is actually correct to compare the beginning of the string only.

For instance "object.container" can turn into "object.container.storageFolder" or "object.container.person.musicArtist" so the plain strcmp will fail to recognize the container nature.

Fixes vlc-ios#1239 (closed)

Merge request reports

Loading