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

Brian Murray brian at game-sat.com
Sat Dec 2 06:00:25 CET 2006


Slave mode is a good system, but lacks for async input. I created a  
wrapper for stdin/out that provides what this patch aims to provide,  
but I was effectively guessing at when the output was finished.

This patch is far from finished, but I would like some feedback on  
the direction I have gone with it. If it is out in left field, let me  
have it.

It currently only works on get_property, but can be added to more.

This adds:
A callback functionality to the input system.
A slave mode that accepts connections from a unix socket.

It also has a pending counter. I haven't tested if it actually works  
if multiple callbacks are queued.

Also, it does not clear the file system socket. If its run twice, you  
will need to manually remove it, or it will segfault...

The attached C file is what I have been testing it with.


Thank you
Brian


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mp_slaved-2.diff
Type: application/octet-stream
Size: 10918 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061201/70c03e7b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpremote.c
Type: application/octet-stream
Size: 1920 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061201/70c03e7b/attachment-0001.obj>


More information about the MPlayer-dev-eng mailing list