summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2021-06-20 10:27:19 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2021-06-20 10:27:19 +0200
commita84f9a8e19da395d134dc39f8328f3565628e925 (patch)
tree520f1cd74ee0aeee931c4fd398c2a8e44ff898b8
parent545613e0e75d21f573c6942ec14d6b49ad889068 (diff)
downloadvdr-a84f9a8e19da395d134dc39f8328f3565628e925.tar.gz
vdr-a84f9a8e19da395d134dc39f8328f3565628e925.tar.bz2
Improved responsiveness in cSectionHandler::Action()
-rw-r--r--HISTORY1
-rw-r--r--sections.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index b85e1a80..54a61916 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9731,3 +9731,4 @@ Video Disk Recorder Revision History
string.
- When checking whether a recording has already been made, recording names are now
compared case insensitive.
+- Improved responsiveness in cSectionHandler::Action() (thanks to Helmut Binder).
diff --git a/sections.c b/sections.c
index 0d7bef34..88935c7b 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.1 2021/06/08 15:10:51 kls Exp $
+ * $Id: sections.c 5.2 2021/06/20 10:27:19 kls Exp $
*/
#include "sections.h"
@@ -189,7 +189,7 @@ void cSectionHandler::Action(void)
int oldStatusCount = statusCount;
Unlock();
- if (poll(pfd, NumFilters, waitForLock ? 100 : 1000) > 0) {
+ if (poll(pfd, NumFilters, (!on || waitForLock) ? 100 : 1000) > 0) {
for (int i = 0; i < NumFilters; i++) {
if (pfd[i].revents & POLLIN) {
cFilterHandle *fh = NULL;