summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-08-16 09:57:10 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-08-16 09:57:10 +0200
commitfd682083a4d79d82113f345ac9b56d7afb1ed868 (patch)
tree60c5eae076ade1f505f68987306173156ed7080b /vdr.c
parent435018bf4fa749a69e9178a569347885ebeeec64 (diff)
downloadvdr-fd682083a4d79d82113f345ac9b56d7afb1ed868.tar.gz
vdr-fd682083a4d79d82113f345ac9b56d7afb1ed868.tar.bz2
Now running even w/o DVB devices, provided at least one device is implemented by a plugin1.1.7
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/vdr.c b/vdr.c
index 286b0bb2..9da5b5ee 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/people/kls/vdr
*
- * $Id: vdr.c 1.119 2002/08/11 11:32:15 kls Exp $
+ * $Id: vdr.c 1.120 2002/08/16 09:54:03 kls Exp $
*/
#include <getopt.h>
@@ -327,8 +327,7 @@ int main(int argc, char *argv[])
// DVB interfaces:
- if (!cDvbDevice::Initialize())
- return 2;
+ cDvbDevice::Initialize();
cSIProcessor::Read();
@@ -340,6 +339,12 @@ int main(int argc, char *argv[])
// Primary device:
cDevice::SetPrimaryDevice(Setup.PrimaryDVB);
+ if (!cDevice::PrimaryDevice()) {
+ const char *msg = "no primary device found - giving up!";
+ fprintf(stderr, "vdr: %s\n", msg);
+ esyslog("ERROR: %s", msg);
+ return 2;
+ }
// OSD: