mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Checking if the video card is really a DVB card
This commit is contained in:
parent
3e366d1ec4
commit
dd6bc9feea
1
HISTORY
1
HISTORY
@ -118,3 +118,4 @@ Video Disk Recorder Revision History
|
||||
of the recording.
|
||||
- Improved reaction on user input in fast/slow forward/back modes.
|
||||
- No more upper limit for the value of 'Pnr'.
|
||||
- Checking if the video card is really a DVB card.
|
||||
|
6
dvbapi.c
6
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.20 2000/08/01 18:06:39 kls Exp $
|
||||
* $Id: dvbapi.c 1.21 2000/08/06 12:00:13 kls Exp $
|
||||
*/
|
||||
|
||||
#include "dvbapi.h"
|
||||
@ -1130,10 +1130,14 @@ bool cDvbApi::Init(void)
|
||||
dsyslog(LOG_INFO, "probing %s", fileName);
|
||||
int f = open(fileName, O_RDWR);
|
||||
if (f >= 0) {
|
||||
struct video_capability cap;
|
||||
int r = ioctl(f, VIDIOCGCAP, &cap);
|
||||
close(f);
|
||||
if (r == 0 && (cap.type & VID_TYPE_DVB)) {
|
||||
dvbApi[i] = new cDvbApi(fileName);
|
||||
NumDvbApis++;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (errno != ENODEV)
|
||||
LOG_ERROR_STR(fileName);
|
||||
|
Loading…
Reference in New Issue
Block a user