RFC: recording strategy on timer conflicts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Freitag, 26. Mai 2006 15:18 schrieb Klaus Schmidinger:
> Please give this a try, and let me know whether it fixes all known
> problems.
>

A quick test of the problem described previously seems to work fine:
(I'm listing only the relevant log entries, dd as return value was not active)

// Start of recording with prioritiy 45 at 00:27 on device 2
Mai 27 00:27:00 linux vdr: [5506] switching device 2 to channel 2
Mai 27 00:27:00 linux vdr: [5506] timer 65 (2 0027-0100 'Blond am Freitag') start
Mai 27 00:27:00 linux vdr: [5506] record /video0/Blond_am_Freitag/2006-05-27.00.27.45.99.rec
...
// Start of recording with prioritiy 5 at 00:27 on device 1
Mai 27 00:27:01 linux vdr: [5506] switching device 1 to channel 1
Mai 27 00:27:02 linux vdr: [5506] timer 66 (1 0027-0125 'Nachtmagazin') start
Mai 27 00:27:02 linux vdr: [5506] record /video0/Nachtmagazin/2006-05-27.00.27.05.99.rec
...
// Start of recording with priority 50 at 00:29
Mai 27 00:29:00 linux vdr: [5506] ******* new GetDevice would select device 1 in
stead of 2
Mai 27 00:29:00 linux vdr: [5506] stopping recording on DVB device 2 due to higher priority
Mai 27 00:29:03 linux vdr: [5506] switching device 2 to channel 6
Mai 27 00:29:03 linux vdr: [5506] timer 67 (6 0029-0220 'Nich' mit Leo') start
Mai 27 00:29:03 linux vdr: [5506] record /video0/Nich'_mit_Leo/2006-05-27.00.29.50.99.rec
...
Mai 27 00:29:03 linux vdr: [5506] stopping recording on DVB device 1 due to higher priority
...
Mai 27 00:29:04 linux vdr: [5506] switching device 1 to channel 2
Mai 27 00:29:04 linux vdr: [5506] timer 65 (2 0027-0100 'Blond am Freitag') start
Mai 27 00:29:04 linux vdr: [5506] record /video0/Blond_am_Freitag/2006-05-27.00.27.45.99.rec

> //XXX what if Priority() is < -1? -> limit to -1..MAXPRIORITY???

how can one set a priority below -1 and what would this mean? As far as 
understood the cDevice class, this can only be done in a cDevice-derived 
class. So perhaps cDevice::Priority should limit its return value to -1 ... MAXPRIORITY?

Christian



[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux