changeset 18243:8cb434bc37e4

5 - Drop more buffered audio data left from old position when seeking. Patch by Uoti Urpala
author rtognimp
date Mon, 24 Apr 2006 11:00:20 +0000
parents caac2ca98168
children bde1d01a5b24
files mplayer.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Mon Apr 24 10:58:40 2006 +0000
+++ b/mplayer.c	Mon Apr 24 11:00:20 2006 +0000
@@ -4834,6 +4834,8 @@
       if(sh_audio){
         current_module="seek_audio_reset";
         audio_out->reset(); // stop audio, throwing away buffered data
+        sh_audio->a_buffer_len = 0;
+        sh_audio->a_out_buffer_len = 0;
       }
         // Set OSD:
       if(!loop_seek){