[MPlayer-dev-eng] [PATCH] watchpid slave command

rototor at rototor.de rototor at rototor.de
Wed Aug 12 18:08:43 CEST 2009


Hi there,

attached you find a patch which adds a new slave command "watchpid". The command has the syntax:

watchpid <process-id>

When mplayer gets this command it will in future watch if the process specified by the PID is still alive. If the watched process is no longer alive mplayer will quit.

This patch is useful if you build your own mplayer frontend and want mplayer to exit if your frontend crashes. In our case we use mplayer in our game Hive Rise (http://www.hiverise.com) to play ingame webradio. If the game exits unexpectedly mplayer should stop playing. 

This patch is against SVN revision 29485 and works fine for us on Windows and Linux. It would be great if this patch (or some variant of it) could find its way into the official sources, so that Hive Rise gamers could replace the mplayer binary we deliver with some official release -- should they have any problems with our binaries.

Thanks.

cu,
  Emmy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: watchpid.patch
Type: application/octet-stream
Size: 7007 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090812/dfd09e5e/attachment.obj>


More information about the MPlayer-dev-eng mailing list