[MPlayer-users] Pause and play next song; hear a glitch
    Reimar Döffinger 
    Reimar.Doeffinger at gmx.de
       
    Fri Nov  6 14:34:35 CET 2009
    
    
  
On Fri, Nov 06, 2009 at 12:56:19PM +0200, Yarriswamy Chandranna wrote:
> Question is: is there a patch for this? If so please send me.
Try if this works:
Index: mplayer.c
===================================================================
--- mplayer.c   (revision 29833)
+++ mplayer.c   (working copy)
@@ -2409,6 +2409,9 @@
     }
     mpctx->osd_function=OSD_PLAY;
     if (mpctx->audio_out && mpctx->sh_audio)
+        if (mpctx->eof) // do not play remaining audio if we e.g.  switch to the next file
+          mpctx->audio_out->reset();
+        else
         mpctx->audio_out->resume();    // resume audio
     if (mpctx->video_out && mpctx->sh_video && vo_config_count)
         mpctx->video_out->control(VOCTRL_RESUME, NULL);        // resume video
    
    
More information about the MPlayer-users
mailing list