diff options
author | Peter Bieringer <pb@bieringer.de> | 2021-02-15 19:34:34 +0100 |
---|---|---|
committer | Peter Bieringer <pb@bieringer.de> | 2021-02-15 19:34:34 +0100 |
commit | 8da9f0f034940a3ff3b0256c956a5ce925c192cd (patch) | |
tree | e5e2f04f902aee7e2071be72420c3eee792f5b79 | |
parent | 36141d58b45db8dafb1e6c0a0987016151e0cd6e (diff) | |
download | vdr-plugin-graphlcd-8da9f0f034940a3ff3b0256c956a5ce925c192cd.tar.gz vdr-plugin-graphlcd-8da9f0f034940a3ff3b0256c956a5ce925c192cd.tar.bz2 |
move thread cancel in new introduced Stop() function (hint by VDR maintainer)
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | display.c | 7 | ||||
-rw-r--r-- | display.h | 1 | ||||
-rw-r--r-- | plugin.c | 2 |
4 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,7 @@ VDR Plugin 'graphlcd' Revision History ------------------------------------- +2021-02-15: Version 1.0.5 +- [pbiering] move thread cancel in new introduced Stop() function (hint by VDR maintainer) 2021-02-08: Version 1.0.4 - [pbiering] add support for new feature: NumRecordings and ListRecordings @@ -60,8 +60,6 @@ cGraphLCDDisplay::cGraphLCDDisplay() cGraphLCDDisplay::~cGraphLCDDisplay() { - Cancel(3); - delete mSkin; delete mSkinConfig; delete mScreen; @@ -70,6 +68,11 @@ cGraphLCDDisplay::~cGraphLCDDisplay() delete mService; } +void cGraphLCDDisplay::Stop (void) +{ + Cancel(3); +} + bool cGraphLCDDisplay::Initialise(GLCD::cDriver * Lcd, const std::string & CfgPath, const std::string & SkinsPath, const std::string & SkinName) { std::string skinsPath; @@ -56,6 +56,7 @@ public: ~cGraphLCDDisplay(void); bool Initialise(GLCD::cDriver * Lcd, const std::string & CfgPath, const std::string & SkinsPath, const std::string & SkinName); + void Stop(void); void Tick(); void Update(); void Clear(); @@ -39,7 +39,7 @@ static const char * kPluginName = "graphlcd"; -static const char *VERSION = "1.0.4"; +static const char *VERSION = "1.0.5"; static const char *DESCRIPTION = trNOOP("Output to graphic LCD"); static const char *MAINMENUENTRY = NULL; |