Skip to content

[3.0] upnp: fix browsing of certain servers

Felix Paul Kühne requested to merge fkuehne/vlc:3.0-fix-upnp into 3.0.x

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)

(cherry picked from commit 741f1f90, backport of !1212 (merged))

Merge request reports