summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authoralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-20 09:48:47 +0000
committeralbeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-20 09:48:47 +0000
commitaa2319e1ea205975cc2df7ab1ba3f7d3678643f0 (patch)
tree79bc7c4b5e7450ee3600d90466e20cc84f6ea340 /mplayer.c
parent366c057ac4777887359a4d6803df3d7098926d0b (diff)
downloadmpv-aa2319e1ea205975cc2df7ab1ba3f7d3678643f0.tar.bz2
mpv-aa2319e1ea205975cc2df7ab1ba3f7d3678643f0.tar.xz
Fix endless loop at end of an audio only file. It occured when the last chunk
of audio data was smaller than the ao min outburst. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5217 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r--mplayer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mplayer.c b/mplayer.c
index 084f028196..bf0916ba49 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -1449,6 +1449,8 @@ if(!sh_video) {
,(sh_audio->timer>0.5)?100.0*audio_time_usage/(double)sh_audio->timer:0
,cache_fill_status
);
+ if(d_audio->eof && sh_audio->a_buffer_len < ao_data.outburst)
+ eof = PT_NEXT_ENTRY;
goto read_input;
}