diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-12 13:30:11 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2004-06-12 13:30:11 +0200 |
commit | 8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0 (patch) | |
tree | e8541a80ded13b9dd263123d4adf1e941f902ce8 /osd.c | |
parent | c3144c9ab81a02469f65bded3285d643a3111ebc (diff) | |
download | vdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.gz vdr-8108d4587faf7c9e6d05c5ce2dd42e3a866b2dd0.tar.bz2 |
Some improvements in cOsd creation
Diffstat (limited to 'osd.c')
-rw-r--r-- | osd.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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!"); |