see http://xbmc.org/forum/showthread.php?t=37345