Fork from http://git.mplayer2.org/