Fix screen tearing in xbmc