[MPlayer-dev-eng] [PATCH] Erase PAUSE message when no longer paused

Diego Biurrun diego at biurrun.de
Tue Aug 5 10:58:27 CEST 2008


On Sun, Aug 03, 2008 at 02:48:12AM +0000, Bryan Henderson wrote:
> When you pause, Mplayer issues the message "===== PAUSED ======" to
> Standard Output.  It then positions the cursor to the beginning of the
> same line, in hopes that a subsequent message after the pausing ends
> will overwrite it, and thus the message is more of a state indicator
> than a message.
> 
> But if the next message doesn't come right away, you still see
> "PAUSED" while the movie is not paused, and if the next message is
> shorter than the PAUSED message, you get a mess.

How would I reproduce this?  I have never encountered this problem...

> --- mplayer.c	(revision 27074)
> +++ mplayer.c	(working copy)
> @@ -2384,6 +2397,8 @@
>          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
> +    // Erase the ====  PAUSE  ==== we displayed above.
> +    mp_msg(MSGT_CPLAYER,MSGL_STATUS,"                       \r");

What happens if a translated pause string is longer than this?

Diego

P.S.: Please don't misspell MPlayer.



More information about the MPlayer-dev-eng mailing list