Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: OSD "ERROR: attempt to open OSD while it is already open!"



Nicolas Huillard wrote:


Since cOsdProvider::NewOsd() can return NULL, osd->anything shouldn't be called without testing.
I simply cannot decide how to handle the case, since we are in the constructor cSkinSTTNGDisplayMessage::cSkinSTTNGDisplayMessage and many methods after that will try to use the osd property, and crash... The cSkinSTTNGDisplayMessage should simply abort it's construction, but I don't know how to write it in C++...

Why don't you simply return from the constructor after NewOsd returns NULL?
There was a patch posted some days ago concerning this problem:

http://www.linuxtv.org/mailinglists/vdr/2004/07-2004/msg00520.html

Rg. Achim





Home | Main Index | Thread Index