Mailing List archive

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

[vdr] Re: MP3/MPlayer Plugin 0.8.2 available



 Ulrich Petri wrote:
> Ondrej Wisniewski wrote:
>>
>> BUT, how can I change the env-variable from within
>> VDR to switch audio tracks ? As you already stated above a
>> command in commands.conf doesn't work.
>>
>
> You can't. There is NO possiblity for a program to change its parent's environment.
>

Do it with a file.

in commands.conf do:

echo '-aid 1' > /usr/local/bin/mplayer.lang
or
echo '-aid 0' > /usr/local/bin/mplayer.lang

and the do in mplayer.sh just before the start of mplayer:

MPLAYER_AID=`cat /usr/local/bin/mplayer.lang`

then you have MPLAYER_AID uptodate.



Greetings,
Andreas








-- 
Info:
To unsubscribe send a mail to ecartis@linuxtv.org with "unsubscribe vdr" as subject.



Home | Main Index | Thread Index