[MPlayer-dev-eng] [PATCH] add slave command for stop playback without to quit MPlayer (useful with -idle)

Diego Biurrun diego at biurrun.de
Fri Mar 7 00:40:48 CET 2008


On Thu, Mar 06, 2008 at 06:36:13PM +0100, Mathieu SCHROETER wrote:
>
> --- DOCS/tech/slave.txt	(r??vision 26185)
> +++ DOCS/tech/slave.txt	(copie de travail)
> @@ -266,6 +266,9 @@
>  
> +stop
> +    Stop the playback.

Stop playback.

> --- DOCS/man/en/mplayer.1	(r??vision 26185)
> +++ DOCS/man/en/mplayer.1	(copie de travail)
> @@ -232,6 +232,8 @@
> +.IPs "U\ \ \ \ "
> +Stop playing (and quit if -idle not used).

Stop playing (and quit if \-idle is not used).

> --- mplayer.c	(r??vision 26185)
> +++ mplayer.c	(copie de travail)
> @@ -3974,6 +3974,9 @@
>        mpctx->playtree_iter = NULL;
>      }
>     }
> +} else if (mpctx->eof == PT_STOP) {
> +  play_tree_iter_free(mpctx->playtree_iter);
> +  mpctx->playtree_iter = NULL;
>  } else { // NEXT PREV SRC
>       mpctx->eof = mpctx->eof == PT_PREV_SRC ? -1 : 1;
>  }

Please indent this code with 4 spaces where appropriate.

Diego



More information about the MPlayer-dev-eng mailing list