summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY4
-rw-r--r--sections.c5
3 files changed, 7 insertions, 3 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index eda44d39..7382521e 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3617,6 +3617,7 @@ Onur Sentürk <onur@sentek.org>
for fixing handling shared CA pids
for fixing handling the S2SatelliteDeliverySystemDescriptor for transponders broadcasting
in "backwards compatibility mode" according to ETSI EN 300 468
+ for pointing out some potentially mistakable code in cSectionHandler::SetStatus()
Helmut Binder <cco@aon.at>
for improving calculating signal strength and quality
diff --git a/HISTORY b/HISTORY
index 99158f26..b2f3e24c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9766,7 +9766,7 @@ Video Disk Recorder Revision History
(reported by Timo Weingärtner).
- Official release.
-2022-01-24:
+2022-01-31:
- Replaced strncpy() with memcpy() in strreplace() to avoid a compiler warning
(reported by Marco Mäkelä).
@@ -9776,3 +9776,5 @@ Video Disk Recorder Revision History
- Fixed handling zero bytes in cH264Parser (thanks to Christoph Haubrich).
- Fixed handling error conditions in the index file (reported by Markus Ehrnsperger).
- Fixed a possible deadlock in cDevice::DetachAllReceivers() (thanks to Helmut Binder).
+- Clarified some potentially mistakable code in cSectionHandler::SetStatus() (pointed
+ out by Onur Sentürk).
diff --git a/sections.c b/sections.c
index 88935c7b..51a2823c 100644
--- a/sections.c
+++ b/sections.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sections.c 5.2 2021/06/20 10:27:19 kls Exp $
+ * $Id: sections.c 5.3 2022/01/31 21:21:42 kls Exp $
*/
#include "sections.h"
@@ -155,7 +155,8 @@ void cSectionHandler::SetStatus(bool On)
if (On)
fi->SetStatus(true);
}
- if (flush = On)
+ flush = On;
+ if (flush)
flushTimer.Set();
on = On;
waitForLock = false;