[MPlayer-dev-eng] running a program with a keystroke - passing playing filename to it

Clément Bœsch ubitux at gmail.com
Tue Dec 21 19:56:45 CET 2010


On Tue, Dec 21, 2010 at 10:51:10AM -0300, Elias Gabriel Amaral da Silva wrote:
> 2010/12/21 Clément Bœsch <ubitux at gmail.com>:
> > On Tue, Dec 21, 2010 at 09:33:40AM -0300, Elias Gabriel Amaral da Silva wrote:
> > [...]
> >> Also uau suggested that instead of keeping hard-coded environment
> >> variables (since the list of them could grow), one should expand
> >> mplayer variables on run parameter, like osd_show_property_text does.
> >
> > Sounds like the correct thing to do indeed.
> 
> Sending this attached. This feels cleaner now.

This is much better, I like this.

> [...]
> diff --git a/DOCS/tech/slave.txt b/DOCS/tech/slave.txt
> index e31a9f4..5bcf074 100644
> --- a/DOCS/tech/slave.txt
> +++ b/DOCS/tech/slave.txt
> @@ -508,6 +508,11 @@ run <value>
>      Run <value> as shell command. In OSD menu console mode stdout and stdin
>      are through the video output driver.
>  
> +    It expands properties inside the command. Due to an unfortunate
> +    syntax clash, it *looks* like those properties are shell variables,
> +    but then aren't. (for example, in run "echo ${filename}",
           ^^^^
           they?


-- 
Clément B.
Not sent from a jesusPhone.


More information about the MPlayer-dev-eng mailing list