summaryrefslogtreecommitdiff
path: root/dvbosd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-04-12 12:20:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2003-04-12 12:20:07 +0200
commit00166dac5fce46cb15ec558f176d45f734f815e9 (patch)
tree7b344099f2fab0dc81792e9ce62bc15c7d3e178a /dvbosd.c
parentf8a7e51d00d66f2fd71c9f5966a893c59485584b (diff)
downloadvdr-00166dac5fce46cb15ec558f176d45f734f815e9.tar.gz
vdr-00166dac5fce46cb15ec558f176d45f734f815e9.tar.bz2
If no device with an MPEG decoder can be found at startup, the first device is now used as primary device
Diffstat (limited to 'dvbosd.c')
-rw-r--r--dvbosd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbosd.c b/dvbosd.c
index 428a3f04..3d57362d 100644
--- a/dvbosd.c
+++ b/dvbosd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbosd.c 1.20 2003/03/09 09:59:13 kls Exp $
+ * $Id: dvbosd.c 1.21 2003/04/12 12:10:12 kls Exp $
*/
#include "dvbosd.h"
@@ -19,7 +19,7 @@ cDvbOsd::cDvbOsd(int x, int y)
:cOsdBase(x, y)
{
osdDev = dvbDevice ? dvbDevice->OsdDeviceHandle() : -1;
- if (osdDev < 0)
+ if (dvbDevice && osdDev < 0)
esyslog("ERROR: illegal OSD device handle (%d)!", osdDev);
}