Mimetype - MPEG-2 TS and Matroska video files flagged as audio/vnd.dts.hd
A MPEG-2 TS or Matroska file, with embedded DTS HD audio, is flagged as audio/vnd.dts.hd
STEPS TO REPRODUCE:
Download a .m2ts video that has embedded DTS HD audio, check with xdg-mime query filetype testfile.m2ts
The mimetype is shown as "audio/vnd.dts.hd".
The mimetype is shown as "video/mp2t"
Neon Testing Plasma : 5.22.4 Frameworks : 5.85.0 Qt : 5.15.5
The same affects Matroska files with embedded DTS HD audio xdg-mime query filetype testfile.mkv shows a mimetype of "audio/vnd.dts.hd". Seems to be an issue with the "magic" for the DTS HD entry which has a priority "60" in freedesktop.org.xml, higher than that for MPEG-2 TS files (that have a priority of "50") or for Matroska files (that have the default priority of "50"), potentially also "application/x-matroska" and "video/webm" The container files, I suspect, need a higher priority than the DTS HD audio and the "video/x-matroska" entry should include sufficient "magic" so that a priority can be specified. If changing the priority of "video/x-matroska", the "application/x-matroska" and "video/webm" priorities may also need changing. I don't have test cases for the full range of formats. Logged in KDE as: https://bugs.kde.org/show_bug.cgi?id=440632 originally: https://bugs.kde.org/show_bug.cgi?id=420939