only create animator if not existing
This commit is contained in:
parent
74f7250c74
commit
e75aaa6f33
|
@ -220,7 +220,10 @@ bool cView::Init(void) {
|
|||
int osdY = attribs->Y();
|
||||
int osdWidth = attribs->Width();
|
||||
int osdHeight = attribs->Height();
|
||||
animator = new cAnimator(&sdOsd);
|
||||
if (!animator)
|
||||
animator = new cAnimator(&sdOsd);
|
||||
else
|
||||
esyslog("skindesigner: ERROR: animator already exists");
|
||||
return sdOsd.CreateOsd(osdX, osdY, osdWidth, osdHeight);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue