diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 13:32:12 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-01-17 13:32:12 +0100 |
commit | 27939266f19e16676ab1c80a5a4ecad72e852f12 (patch) | |
tree | 3ae5283d96a155d568bf3d2c8474b427b2364a8c /osd.c | |
parent | 3c5b11abbb9c0897eedcc7506af804c62093ec66 (diff) | |
download | vdr-27939266f19e16676ab1c80a5a4ecad72e852f12.tar.gz vdr-27939266f19e16676ab1c80a5a4ecad72e852f12.tar.bz2 |
Added plain text error messages to log entries from cOsd::SetAreas()
Diffstat (limited to 'osd.c')
-rw-r--r-- | osd.c | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osd.c 2.6 2009/12/06 11:33:47 kls Exp $ + * $Id: osd.c 2.7 2010/01/17 13:27:24 kls Exp $ */ #include "osd.h" @@ -724,6 +724,18 @@ void cBitmap::ShrinkBpp(int NewBpp) // --- cOsd ------------------------------------------------------------------ +static const char *OsdErrorTexts[] = { + "ok", + "too many areas", + "too many colors", + "bpp not supported", + "areas overlap", + "wrong alignment", + "out of memory", + "wrong area size", + "unknown", + }; + int cOsd::osdLeft = 0; int cOsd::osdTop = 0; int cOsd::osdWidth = 0; @@ -814,7 +826,7 @@ eOsdError cOsd::SetAreas(const tArea *Areas, int NumAreas) } } else - esyslog("ERROR: cOsd::SetAreas returned %d", Result); + esyslog("ERROR: cOsd::SetAreas returned %d (%s)", Result, Result < oeUnknown ? OsdErrorTexts[Result] : OsdErrorTexts[oeUnknown]); return Result; } |