See https://github.com/xbmc/xbmc/pull/3900#discussion-diff-8560519