https://github.com/xbmc/xbmc/pull/2681/files#L40R657