summaryrefslogtreecommitdiff
path: root/designer.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-12-11 18:14:16 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2020-12-11 18:49:26 +0100
commitbc9cb23ed73c7b85210c8948135773b973fc2927 (patch)
tree4fe25dbbcf490865ffe58c625399fbe2b29c3c4b /designer.c
parentdf8c8e299363a5e93c1436cf8d8ca54c57694256 (diff)
downloadvdr-plugin-skindesigner-1.2.8.6.tar.gz
vdr-plugin-skindesigner-1.2.8.6.tar.bz2
Refresh imgCache if OsdProvider was changed (Thanks to lnj @vdr-portal.de)1.2.8.6
Diffstat (limited to 'designer.c')
-rw-r--r--designer.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/designer.c b/designer.c
index b6f35b1..c0dd20a 100644
--- a/designer.c
+++ b/designer.c
@@ -171,6 +171,7 @@ void cSkinDesigner::ListCustomTokens(void) {
}
skindesignerapi::ISkinDisplayPlugin *cSkinDesigner::GetDisplayPlugin(int plugId) {
+ Init();
map<int, cViewPlugin*>::iterator hit = pluginViews.find(plugId);
if (hit == pluginViews.end())
return NULL;
@@ -194,7 +195,7 @@ void cSkinDesigner::Init(void) {
config.SetOSDFonts();
}
dsyslog("skindesigner: initializing skin %s", skin.c_str());
-
+
config.CheckDecimalPoint();
plgManager->Reset();
@@ -235,6 +236,14 @@ void cSkinDesigner::Init(void) {
watch.Stop("templates loaded and caches created");
}
}
+ else if (config.PlayModeChanged())
+ {
+ dsyslog ("skindesigner: drop image cache");
+ if (imgCache)
+ delete imgCache;
+ imgCache = new cImageCache();
+ imgCache->SetPathes();
+ }
}
void cSkinDesigner::DeleteViews(void) {