patch by Daniele Forghieri ( guru@digitalfantasy.it ) (little cleanup by me) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10752 b3059339-0415-0410-9bf9-f77b7e298cf2