[MPlayer-dev-eng] [PATCH] Create an async interface to Slave mode

Brian Murray brian at game-sat.com
Sat Dec 2 18:31:42 CET 2006


On 2-Dec-06, at 3:46 AM, Benjamin Zores wrote:

> On Sat, 2 Dec 2006 11:45:00 +0200
> Jan Knutar <jknutar at nic.fi> wrote:
>
>> On Saturday 02 December 2006 08:42, Brian Murray wrote:
>>> Being able to send a command to mplayer without having a pre- 
>>> existing
>>> open channel to it (such as stdin/out), and recieve data back.  
>>> Unless
>>> theres already an interface I overlooked... :S
>>
>> I have this in my ~/.mplayer/config :
>>
>> input= file=/home/jan/mplayerctrl
>>
>> where mplayerctrl is a fifo. This lets me send commands to MPlayer.
>> Would be nice to have another fifo to read output, too, of course :)
>
> I've sent such a patch with event/info retrieval capabilities few  
> months ago
> (something like August iirc).


I have been reading through the patch that Fox linked to. You took a  
much different approach then I did. To me, it still leaves it open to  
a race if 2 commands are waiting for data. I guess I should give some  
background as to what sent me on this quest.

I have built a web interface for my media pc that uses mplayer to  
handle the actual displaying (I'm gonna post it on sourceforge once  
it works a little better). If 2 people are viewing the page, it will  
likely provide incorrect data on a race. I think your solution is a  
good one, it just doesn't suit my needs.




More information about the MPlayer-dev-eng mailing list