changeset 17341:c919e346b0d1

fix premature end of audio playback (audio only)
author henry
date Sun, 08 Jan 2006 10:18:18 +0000
parents 6680a3bde83c
children adb64d908347
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 {