Skip to content

Media collision when mrl is the same except for the port

When trying to get a ML media with the IMedialibrary::media API, if a media with the same url but different port has already been inserted, the ML returns it instead of a new media.

It prevents the VLC for Android app to play any media with a similar mrl than a previous one. See vlc-android#2114 (closed)

Example: when trying to play rtsp://192.168.1.172:8544/mystream the ML returns a media with this mrl instead : rtsp://192.168.1.172:8554/mystream (because it has been played before).

Edited by Nicolas Pomepuy
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information