Pause and play next song; hear a glitch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]<

 



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


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux