Crash when opening ts files that can't be read
Description
I have a m3u file with tv channels (tv_channels.m3u) in which the url can't be read. It will still display the files in the tv_channel.m3u playlist, and when clicking on a random file it will crash.
From the logs, it might be linked with the recent commit that reloaded metadata before starting a file,
Expected behavior
It should display an error when trying to open the file or display an empty playlist.
Actual behavior
It crashes with: ts-crash.log
Steps to reproduce
- Put the tv_channels.m3u file on the phone
- reload the medialibrary
- Go to playlists -> tv_channels.m3u
- Select random entry
Context
App version
Master (b559dc07)
Android version
12
Device model
Pixel 3a
App mode
Smartphone