[vdr] [RFC] Shutdown rewrite for 1.5.x

Marko Mäkelä marko.makela at hut.fi
Tue Feb 6 21:38:41 CET 2007


On Wed, Jan 31, 2007 at 10:55:11PM +0100, Udo Richter wrote:
> Marko Mäkelä wrote:
> >First, and more important: Can you please suspend the playback of
> >recordings when Shutdown.IsUserInactive() holds?
> 
> This would break the other interesting feature, shut down VDR as soon as 
> the playback ends.

The above can be addressed in plugins that are derived from cDevice.
However, you're right about breaking that feature: if PlayVideo() and
PlayAudio() start refusing data when Shutdown.IsUserInactive() holds,
the playback will never end, and VDR would probably wait
MinUserInactivity (3 hours by default) until shutdown.

So, I have a feature request that would greatly improve the WAF around
here.  Could you please introduce a configuration option that would
allow the Power key to initiate shutdown even while playing a recording
(provided that nothing else prevents a shutdown, of course)?  After all,
it does initiate shutdown when viewing live program without waiting
until the end of the current program.

The problem in our family is that my wife often watches recorded
children's programs with my kids, and they may try to shut down VDR
while the credits texts are running.  It'd be an extra step to press
the Stop button before Power.

	Marko



More information about the vdr mailing list