mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
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 osdY = attribs->Y();
|
||||||
int osdWidth = attribs->Width();
|
int osdWidth = attribs->Width();
|
||||||
int osdHeight = attribs->Height();
|
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);
|
return sdOsd.CreateOsd(osdX, osdY, osdWidth, osdHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user