Skip to content
Snippets Groups Projects

[3.0] upnp: fix browsing of certain servers

Merged Felix Paul Kühne requested to merge fkuehne/vlc:3.0-fix-upnp into 3.0.x
  1. Jan 14, 2022
    • Felix Paul Kühne's avatar
      upnp: fix browsing of certain servers · 584bf4f6
      Felix Paul Kühne authored
      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
      
      (cherry picked from commit 741f1f90)
      584bf4f6
Loading