[MPlayer-dev-eng] [PATCH] Add option to set heartbeat command execution interval
Android Jack
jackdroido at gmail.com
Wed Dec 5 10:02:13 CET 2012
Hi !
Attached is a patch which adds a command line option named
"-heartbeat-interval", which takes an integer >= 1 representing the
delay in seconds between each execution of the command specified with
the (existing) "-heartbeat-cmd" option, avoiding to hardcode this to
30 seconds.
I used "-heartbeat-cmd" option to implement a very simple keepalive
functionality in my application which, in my case, kills mplayer in
case of absence of an RTP stream. Being able to specify command
execution interval, makes it much more responsive to RTP stream
interruption.
I find it simple (at least, so it seems to me ;-)) to add to mplayer,
and think it could be useful to someone else, so here it is.
This is my first submission to a BIG project, and have tried to comply
with submitting rules ... so be understanding with me :-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_heartbeat_interval.diff
Type: application/octet-stream
Size: 1823 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20121205/9ce0e4fc/attachment.obj>
More information about the MPlayer-dev-eng
mailing list