summaryrefslogtreecommitdiff
path: root/osd.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-06-12 13:30:11 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-06-12 13:30:11 +0200
commit8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0 (patch)
treee8541a80ded13b9dd263123d4adf1e941f902ce8 /osd.c
parentc3144c9ab81a02469f65bded3285d643a3111ebc (diff)
downloadvdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.gz
vdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.bz2
Some improvements in cOsd creation
Diffstat (limited to 'osd.c')
-rw-r--r--osd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/osd.c b/osd.c
index ac950ff6..6bfa1e5b 100644
--- a/osd.c
+++ b/osd.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osd.c 1.52 2004/06/05 16:52:51 kls Exp $
+ * $Id: osd.c 1.53 2004/06/12 13:24:42 kls Exp $
*/
#include "osd.h"
@@ -713,6 +713,10 @@ cOsdProvider::~cOsdProvider()
cOsd *cOsdProvider::NewOsd(int Left, int Top)
{
+ if (cOsd::IsOpen()) {
+ esyslog("ERROR: attempt to open OSD while it is already open!");
+ return NULL;
+ }
if (osdProvider)
return osdProvider->CreateOsd(Left, Top);
esyslog("ERROR: no OSD provider available - using dummy OSD!");