[vdr] [Bug] VPS Recording not starting as long as another recording (with lower priority) is running
markus.ehrnsperger at googlemail.com
Mon Mar 7 19:56:01 CET 2011
2011/3/7 Steffen Barszus <steffenbpunkt at googlemail.com>:
> 2011/3/7 Klaus Schmidinger <Klaus.Schmidinger at tvdr.de>:
>> On 03/07/11 14:13, Frank Schmirler wrote:
>>> On Mon, 07 Mar 2011 13:33:47 +0100, Klaus Schmidinger wrote
>>>> On 03/07/11 13:23, Frank Schmirler wrote:
>>>>> On Sun, 06 Mar 2011 17:15:44 +0100, Klaus Schmidinger wrote
>>>>>> The problem is that the VPS code in vdr.c avoids devices that are
>>>>>> currently recording. And since this is a rather complex area,
>>>>>> I'm not sure if it's too good an idea to change this ;-)
>>>>>> If you feel like it, you may want to take a look at the code under
>>>>>> // Find a device that provides the required transponder:
>>>>>> in vdr.c. Maybe you can come up with a better solution...
I have a suggestion: Treat the VPS margin the same way as the time a
non VPS timer will start before the EPG event starts. Example:
Tagesschau, starts at 8:00 PM.
If I don't use VPS, I will create a timer at 7:58 PM (in case the news
start slightly before 8)
If I use VPS, I will create a timer at 8:00 PM. The VPS margin is 2
minutes (in this example).
If I don't use VPS, another recording (with lower priority) will be
stopped at 7.58 PM. The timer will start recording.
If I use VPS, another recording (with lower priority) will be stopped
at 7.58 PM (my suggestion). The next two minutes, the device will be
used for VPS checking only. The recording will start at 8:00 PM.
Of course, this might look like wasting a device for two minutes only
to check the VPS. On the other side, not using VPS is even worse: I
will waste the device and disk space. So, using VPS is still better.
And, the timer with lower priority has lower priority by purpose. So,
I want it to be interrupted.
I suggest to use GetDevice as soon as the timer is within the VPS margin.
This has the following advantages:
- Easy to implement
- Easy to understand for users, and expected behavior: The timer with
higher priority has higher priority :) .
- No rocket science
I admit, it has some disadvantages. But, from my point of view, these
are minor compared to the advantages. At the moment, I can use VPS
only with care as I might miss a recording with very high priority.
More information about the vdr