diff --git a/HISTORY b/HISTORY index 90b03af..1aea7a8 100644 --- a/HISTORY +++ b/HISTORY @@ -29,7 +29,8 @@ VDR Plugin 'femon' Revision History - Redesigned the user interface. - Transponder information is now available in advanced display mode: - Press 'OK' key to switch between the simple and the advanced display mode. + Press 'OK' key to switch between the simple and the advanced display + mode. - Moved bitrate calculation to it's own thread for improved accurancy. 2004-03-07: Version 0.0.3a @@ -41,7 +42,8 @@ VDR Plugin 'femon' Revision History 2004-03-16: Version 0.0.3b - Fixed channel toggling with '0' key. -- Bitrate calculation thread is now canceled immediately to speed up channel switching. +- Bitrate calculation thread is now canceled immediately to speed up + channel switching. 2004-04-04: Version 0.0.3c @@ -88,7 +90,8 @@ VDR Plugin 'femon' Revision History 2004-06-11: Version 0.1.3 -- Added "AC-3 Stream Information" display mode (Thanks to Lothar Englisch). +- Added "AC-3 Stream Information" display mode (Thanks to Lothar + Englisch). 2004-06-24: Version 0.1.4 @@ -100,7 +103,8 @@ VDR Plugin 'femon' Revision History - Fixed OSDSTATUSWIN_XC define. - Added preliminary NTSC support (make NTSC_SYSTEM=1 plugins). -- Fixed "Setup/OSD/Use Small Fonts" bug (Thanks to Winni for reporting this one). +- Fixed "Setup/OSD/Use Small Fonts" bug (Thanks to Winni for reporting + this one). - Added patches directory: CA system names by Lauri Tischler. 2004-09-11: Version 0.1.6 @@ -146,7 +150,8 @@ VDR Plugin 'femon' Revision History 2005-04-01: Version 0.8.7 - Default make target is now all. -- Fixed the access rights of symbols subdirectory (Thanks to Harri Kukkonen). +- Fixed the access rights of symbols subdirectory (Thanks to Harri + Kukkonen). - Added a new theme: Moronimo (Thanks to Morone). 2005-04-02: Version 0.8.8 @@ -160,7 +165,8 @@ VDR Plugin 'femon' Revision History 2005-05-20: Version 0.9.0 -- Renamed compiling switches ('DEBUG' to 'FEMON_DEBUG' and 'NTSC_SYSTEM' to 'FEMON_NTSC'). +- Renamed compiling switches ('DEBUG' to 'FEMON_DEBUG' and 'NTSC_SYSTEM' + to 'FEMON_NTSC'). - Enabled preliminary support for the device switching. 2005-07-23: Version 0.9.1 @@ -200,7 +206,8 @@ VDR Plugin 'femon' Revision History - Updated for vdr-1.3.40. - Fixed a translation bug (Thanks to Antti Hartikainen). -- Fixed AC3 header parsing bug (Thanks to Axel Katzur for reporting this one). +- Fixed AC3 header parsing bug (Thanks to Axel Katzur for reporting this + one). - Fixed EgalsTry theme (Thanks to Uwe Hanke). 2006-02-06: Version 0.9.7 @@ -248,7 +255,8 @@ VDR Plugin 'femon' Revision History 2007-05-01: Version 1.1.2 -- Fixed opening while replaying (Thanks to Antti Seppälä for reporting this one). +- Fixed opening while replaying (Thanks to Antti Seppälä for reporting + this one). 2007-05-15: Version 1.1.3 @@ -298,7 +306,7 @@ VDR Plugin 'femon' Revision History 2008-06-20: Version 1.6.1 - Updated Italian translation (Thanks to Diego Pierotto). -- Fixed a crash if no channel available (Thanks to Winfried Köhler) +- Fixed a crash if no channel available (Thanks to Winfried Köhler). 2008-10-12: Version 1.6.2 @@ -317,17 +325,33 @@ VDR Plugin 'femon' Revision History - Updated Italian translation (Thanks to Diego Pierotto). - Fixed a memory leak. - Added a check for the minimum OSD height. -- Replaced "Use single area (8bpp)" option with VDR's "Setup/OSD/Anti-alias". +- Replaced "Use single area (8bpp)" option with VDR's + "Setup/OSD/Anti-alias". - Removed the FEMON_NTSC option. -- Fixed a deadlock in cFemonReceiver (Thanks to Antti Seppälä for reporting this one). +- Fixed a deadlock in cFemonReceiver (Thanks to Antti Seppälä for + reporting this one). 2008-12-16: Version 1.6.5 - Backported from 1.7.0. +2009-01-06: Version 1.6.6 + +- Backported from 1.7.1. + +=================================== +VDR Plugin 'femon' Revision History +=================================== + 2008-12-16: Version 1.7.0 - Updated for vdr-1.7.2. - Added whitespace cleanups. -- Changed info window to use the channel source instead of the frontend type. +- Changed info window to use the channel source instead of the frontend + type. - Removed the "Show CA system" setup option. + +2009-01-06: Version 1.7.1 + +- Fixed closing of frontend file handles (Thanks to Brendon Higgins for + reporting this one). diff --git a/femon.c b/femon.c index 0afc665..4d99717 100644 --- a/femon.c +++ b/femon.c @@ -18,7 +18,7 @@ #error "VDR-1.7.0 API version or greater is required!" #endif -static const char VERSION[] = "1.7.0"; +static const char VERSION[] = "1.7.1"; static const char DESCRIPTION[] = trNOOP("DVB Signal Information Monitor (OSD)"); static const char MAINMENUENTRY[] = trNOOP("Signal Information"); diff --git a/femonosd.c b/femonosd.c index da7f046..3b3855e 100644 --- a/femonosd.c +++ b/femonosd.c @@ -121,7 +121,7 @@ cFemonOsd *cFemonOsd::pInstance = NULL; cFemonOsd *cFemonOsd::Instance(bool create) { Dprintf("%s()\n", __PRETTY_FUNCTION__); - if (pInstance == NULL && create) + if ((pInstance == NULL) && create) { pInstance = new cFemonOsd(); } @@ -179,6 +179,10 @@ cFemonOsd::~cFemonOsd(void) } if (m_Osd) DELETENULL(m_Osd); + if (m_Frontend >= 0) { + close(m_Frontend); + m_Frontend = -1; + } pInstance = NULL; } @@ -844,6 +848,6 @@ eOSState cFemonOsd::ProcessKey(eKeys Key) break; } state = osContinue; - } + } return state; }