Added a smplayer's patch