Well, I'm currently investigating one issue and will send PR to Kodi soon.
But I don't know if this is same issue or not (you can try this sample https://mega.nz/file/7AoyUBiA#…kGkD_dn0rlGUhP4).
And on which device you are playing? ARM? And can you post whole kodi log file?