[MPlayer-dev-eng] [PATCH] Add option to set heartbeat command execution interval

Android Jack jackdroido at gmail.com
Mon Feb 18 15:11:40 CET 2013


Hi !

Thanks for the positive review and sorry for the long delay.

Attached is the patch with the requested changes, applied and tested
on the latest snapshot.

2012/12/6 Reimar Döffinger <Reimar.Doeffinger at gmx.de>:
>
>
> On 5 Dec 2012, at 10:02, Android Jack <jackdroido at gmail.com> wrote:
>
>> 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 :-)
>
> Thanks, it is fine.
> But I think it would be better to make the type float, and also allow a value of 0.
> I admit it seems unlikely to be useful, but I see no reason not to allow people to have the command run each time we loop through this code.
> Could you make and test that change?
>
> Thanks,
> Reimar
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer_heartbeat_interval.diff
Type: application/octet-stream
Size: 1833 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20130218/65813769/attachment.obj>


More information about the MPlayer-dev-eng mailing list