The whole code could use a lot more checks on return values... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16625 b3059339-0415-0410-9bf9-f77b7e298cf2