mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Improved responsiveness in cSectionHandler::Action()
This commit is contained in:
parent
545613e0e7
commit
a84f9a8e19
1
HISTORY
1
HISTORY
@ -9731,3 +9731,4 @@ Video Disk Recorder Revision History
|
|||||||
string.
|
string.
|
||||||
- When checking whether a recording has already been made, recording names are now
|
- When checking whether a recording has already been made, recording names are now
|
||||||
compared case insensitive.
|
compared case insensitive.
|
||||||
|
- Improved responsiveness in cSectionHandler::Action() (thanks to Helmut Binder).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "sections.h"
|
||||||
@ -189,7 +189,7 @@ void cSectionHandler::Action(void)
|
|||||||
int oldStatusCount = statusCount;
|
int oldStatusCount = statusCount;
|
||||||
Unlock();
|
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++) {
|
for (int i = 0; i < NumFilters; i++) {
|
||||||
if (pfd[i].revents & POLLIN) {
|
if (pfd[i].revents & POLLIN) {
|
||||||
cFilterHandle *fh = NULL;
|
cFilterHandle *fh = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user