mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.65k stars 2.93k forks source link

player/loadfile: prefer non-image when selecting video track #15345

Open kasper93 opened 21 hours ago

kasper93 commented 21 hours ago

This fixes ytdl_hook, which would start playback with the thumbnail track selected. This issue occurs because the thumbnail track is added first. If the main track is not marked as default afterward, which it isn't for single streams, the first track (the image track) would be selected.

In general, if a non-image track is available, it should be preferred.