diff options
author | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2003-11-08 18:00:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <kls (at) cadsoft (dot) de> | 2003-11-08 18:00:00 +0100 |
commit | 17c5b4169e50c127991cb20d9f8050a5e47b18c2 (patch) | |
tree | 1d4a827800e238f44bda9fbdcb69a36c03e7cf15 /dvbdevice.c | |
parent | d62fbea7bad99cfa34ec42a678d4cf38ec1593d8 (diff) | |
download | vdr-patch-lnbsharing-17c5b4169e50c127991cb20d9f8050a5e47b18c2.tar.gz vdr-patch-lnbsharing-17c5b4169e50c127991cb20d9f8050a5e47b18c2.tar.bz2 |
Version 1.2.6pre5vdr-1.2.6pre5
- Added cDevice::GetSTC() (suggested by Sven Goethel).
- Added Asia-Pacific satellites to 'sources.conf' (thanks to Richard Scobie).
- Added North American satellites to 'sources.conf' (thanks to Luke Jenkins).
- Fixed getting the list of recordings in case VDR is started from a directory
where it doesn't have access to (thanks to Dirk Mueller).
Diffstat (limited to 'dvbdevice.c')
-rw-r--r-- | dvbdevice.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/dvbdevice.c b/dvbdevice.c index ebb236e..4e7b50c 100644 --- a/dvbdevice.c +++ b/dvbdevice.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: dvbdevice.c 1.67.1.2 2003/10/24 14:32:20 kls Exp $ + * $Id: dvbdevice.c 1.67.1.3 2003/11/07 13:24:49 kls Exp $ */ #include "dvbdevice.h" @@ -326,6 +326,7 @@ cDvbDevice::cDvbDevice(int n) fd_osd = DvbOpen(DEV_DVB_OSD, n, O_RDWR); fd_video = DvbOpen(DEV_DVB_VIDEO, n, O_RDWR | O_NONBLOCK); fd_audio = DvbOpen(DEV_DVB_AUDIO, n, O_RDWR | O_NONBLOCK); + fd_stc = DvbOpen(DEV_DVB_DEMUX, n, O_RDWR); // The DVR device (will be opened and closed as needed): @@ -869,6 +870,20 @@ bool cDvbDevice::SetPlayMode(ePlayMode PlayMode) return true; } +int64_t cDvbDevice::GetSTC(void) +{ + if (fd_stc >= 0) { + struct dmx_stc stc; + stc.num = 0; + if (ioctl(fd_stc, DMX_GET_STC, &stc) == -1) { + esyslog("ERROR: stc %d: %m", CardIndex() + 1); + return -1; + } + return stc.stc / stc.base; + } + return -1; +} + void cDvbDevice::TrickSpeed(int Speed) { if (fd_video >= 0) |