[MPlayer-users] Pause and play next song; hear a glitch
Yarriswamy Chandranna
yarriswamy.chandranna at dspg.com
Wed Nov 11 11:27:31 CET 2009
"mpctx->eof" is not getting set so it won't call alsa reset().
Right now I am looking for cmd->id to judge whether to call
Resume or not.
Thanks,
Yarri
-----Original Message-----
From: mplayer-users-bounces at mplayerhq.hu [mailto:mplayer-users-bounces at mplayerhq.hu] On Behalf Of Reimar Döffinger
Sent: Friday, November 06, 2009 7:05 PM
To: MPlayer usage questions, feature requests,bug reports
Subject: Re: [MPlayer-users] Pause and play next song; hear a glitch
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
_______________________________________________
MPlayer-users mailing list
MPlayer-users at mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
______________________________________________________________________
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.
_____________________________________________________________________
______________________________________________________________________
DSP Group, Inc. automatically scans all emails and attachments using MessageLabs Email Security System.
_____________________________________________________________________
More information about the MPlayer-users
mailing list