only create animator if not existing

This commit is contained in:
louis 2016-09-25 11:11:32 +02:00
parent 74f7250c74
commit e75aaa6f33

View File

@ -220,7 +220,10 @@ bool cView::Init(void) {
int osdY = attribs->Y();
int osdWidth = attribs->Width();
int osdHeight = attribs->Height();
if (!animator)
animator = new cAnimator(&sdOsd);
else
esyslog("skindesigner: ERROR: animator already exists");
return sdOsd.CreateOsd(osdX, osdY, osdWidth, osdHeight);
}