ao_mpegpes: Properly close file on error or uninit
commit4bf28980f97fccafac77dca55a588636afaf6a5c
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 30 Jul 2010 18:28:02 +0000 (30 18:28 +0000)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Tue, 2 Nov 2010 02:14:46 +0000 (2 04:14 +0200)
treed247b1fd2d5b13e413b285e38b6ae9a44bc9bb8f
parentff1da0cb350e091b87ed6661f176a8a945aad034
ao_mpegpes: Properly close file on error or uninit

Avoids failing with "device busy" e.g. when reinitializing the ao.
Fixes bug #1746.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31871 b3059339-0415-0410-9bf9-f77b7e298cf2
libao2/ao_mpegpes.c