summaryrefslogtreecommitdiff
path: root/vdr.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-06-17 11:47:18 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-06-17 11:47:18 +0200
commit3c68ef28d0518579c4269c3545699c623d8df47b (patch)
tree9c7ed2ff269beab8e7428d546dbd098592bf0ac8 /vdr.c
parent79b1c68ffbe11ada50d8e288efc0255eba268185 (diff)
downloadvdr-3c68ef28d0518579c4269c3545699c623d8df47b.tar.gz
vdr-3c68ef28d0518579c4269c3545699c623d8df47b.tar.bz2
Using dummy font if no fonts are installed
Diffstat (limited to 'vdr.c')
-rw-r--r--vdr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vdr.c b/vdr.c
index f3218eb2..e28c7281 100644
--- a/vdr.c
+++ b/vdr.c
@@ -22,7 +22,7 @@
*
* The project's page is at http://www.cadsoft.de/vdr
*
- * $Id: vdr.c 1.292 2007/06/15 13:20:34 kls Exp $
+ * $Id: vdr.c 1.293 2007/06/17 11:23:08 kls Exp $
*/
#include <getopt.h>
@@ -550,6 +550,12 @@ int main(int argc, char *argv[])
))
EXIT(2);
+ if (!*cFont::GetFontFileName(Setup.FontOsd)) {
+ const char *msg = "no fonts available - OSD will not show any text!";
+ fprintf(stderr, "vdr: %s\n", msg);
+ esyslog("ERROR: %s", msg);
+ }
+
// Recordings:
Recordings.Update();