Perform filter inversion mimicing the original filter implementation.

This commit is contained in:
Antti Seppälä 2007-09-27 11:48:28 +00:00
parent c45db972a5
commit e55c90b4c8
1 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
* $Id: sectionfilter.c,v 1.5 2007/09/26 22:07:45 rahrenbe Exp $
* $Id: sectionfilter.c,v 1.6 2007/09/27 11:48:28 ajhseppa Exp $
*/
#include "sectionfilter.h"
@ -34,9 +34,14 @@ cIptvSectionFilter::cIptvSectionFilter(int Index, int devInd,
SetPipeName(devInd);
filter_value[0] = !Tid;
filter_value[0] = Tid;
filter_mask[0] = Mask;
// Invert the filter
for (int i = 0; i < DVB_DEMUX_MASK_MAX; ++i) {
filter_value[i] ^= 0xff;
}
uint8_t mask, mode, local_doneq = 0;
for (int i = 0; i < DVB_DEMUX_MASK_MAX; i++) {
mode = filter_mode[i];