# HG changeset patch # User henry # Date 1136715498 0 # Node ID c919e346b0d1fc1db9fb4b3a1614abf0cec99fce # Parent 6680a3bde83cfa5e5b555b4f099d9499a89c15ed fix premature end of audio playback (audio only) diff -r 6680a3bde83c -r c919e346b0d1 mplayer.c --- a/mplayer.c Sat Jan 07 22:41:04 2006 +0000 +++ b/mplayer.c Sun Jan 08 10:18:18 2006 +0000 @@ -2633,7 +2633,7 @@ float a_pos = sh_audio->delay - audio_out->get_delay() * playback_speed; print_status(a_pos, 0, 0); } - if(d_audio->eof && sh_audio->a_in_buffer_len <= 0) eof = PT_NEXT_ENTRY; + if(d_audio->eof && sh_audio->a_in_buffer_len <= 0 && sh_audio->a_buffer_len <= 0) eof = PT_NEXT_ENTRY; } else {