mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed avoiding the primary DVB interface in case Setup.PrimaryLimit is 0
This commit is contained in:
parent
3b46788bcd
commit
a5c7994c26
1
HISTORY
1
HISTORY
@ -1071,3 +1071,4 @@ Video Disk Recorder Revision History
|
||||
|
||||
- Added 'Ca' code 201 for 'Cryptoworks, GOD-DIGITAL' to 'ca.conf' (thanks to
|
||||
Bernd Schweikert).
|
||||
- Fixed avoiding the primary DVB interface in case Setup.PrimaryLimit is 0.
|
||||
|
9
dvbapi.c
9
dvbapi.c
@ -4,7 +4,7 @@
|
||||
* See the main source file 'vdr.c' for copyright information and
|
||||
* how to reach the author.
|
||||
*
|
||||
* $Id: dvbapi.c 1.154 2002/03/03 15:43:24 kls Exp $
|
||||
* $Id: dvbapi.c 1.155 2002/03/08 14:23:29 kls Exp $
|
||||
*/
|
||||
|
||||
#include "dvbapi.h"
|
||||
@ -63,6 +63,9 @@ extern "C" {
|
||||
// The maximum time to wait before giving up while catching up on an index file:
|
||||
#define MAXINDEXCATCHUP 2 // seconds
|
||||
|
||||
// The default priority for non-primary DVB cards:
|
||||
#define DEFAULTPRIORITY -2
|
||||
|
||||
#define CHECK(s) { if ((s) < 0) LOG_ERROR; } // used for 'ioctl()' calls
|
||||
|
||||
#define FATALERRNO (errno != EAGAIN && errno != EINTR)
|
||||
@ -1685,7 +1688,7 @@ cDvbApi::cDvbApi(int n)
|
||||
transferBuffer = NULL;
|
||||
transferringFromDvbApi = NULL;
|
||||
ca = -1;
|
||||
priority = -1;
|
||||
priority = DEFAULTPRIORITY;
|
||||
cardIndex = n;
|
||||
SetCaCaps();
|
||||
|
||||
@ -2567,7 +2570,7 @@ void cDvbApi::StopRecord(void)
|
||||
delete recordBuffer;
|
||||
recordBuffer = NULL;
|
||||
ca = -1;
|
||||
priority = -1;
|
||||
priority = DEFAULTPRIORITY;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user