Metadata rotation ignored when HEVC video played HW accelerated

I’ve captured many H.265 videos 180 rotated, 1080p60 (attach below tuba snorkelling).
On OSMC, their are played in the wrong orientation when hardware acceleration is enabled.
However, they are in their right orientation when HW acceleration is disabled (but are horribly slow!)
VLC play them in the right on my desktop. The metadata flag is set correctly at 180 but just gets ignored.
“Stream #0:00x1: Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 44826 kb/s, 59.94 fps, 59.94 tbr, 60k tbn (default)
Side data:
displaymatrix: rotation of -180.00 degrees”

How can it be fixed with the HW acceleration?
Kind Regards,
Pascal

Can you give us a sample of an affected file?