From e75aaa6f330fdbf43f68707a408cd13d031b39ff Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 25 Sep 2016 11:11:32 +0200 Subject: [PATCH] only create animator if not existing --- coreengine/view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coreengine/view.c b/coreengine/view.c index 6f18a6f..9d8e119 100644 --- a/coreengine/view.c +++ b/coreengine/view.c @@ -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); }