diff options
author | Jochen Dolze <vdr@dolze.de> | 2009-02-05 17:58:15 +0100 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2009-02-05 17:58:15 +0100 |
commit | 210b6ab3d8a5367e116afefe31cea1d83fa094b9 (patch) | |
tree | a5a11ba0489b725994db55622ee7f2402cff03e9 /filter.cpp | |
parent | 54a468314486b9c5e9ea34d36791873d54fb8365 (diff) | |
download | vdr-plugin-infosatepg-210b6ab3d8a5367e116afefe31cea1d83fa094b9.tar.gz vdr-plugin-infosatepg-210b6ab3d8a5367e116afefe31cea1d83fa094b9.tar.bz2 |
Changed setup channel option into Frequency, Polarization, Srate
Add setup option NoWakeup to prevent wakeup
Improved parsing of Shorttext
Fixed bug in event handling
Diffstat (limited to 'filter.cpp')
-rw-r--r-- | filter.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -136,9 +136,6 @@ void cFilterInfosatepg::Process(u_short Pid, u_char Tid, const u_char *Data, int // Check if we already have this packet if (global->Infosatdata[mac].GetBit(ntohs(ishdr->pktnr))) return; - // set bit in Infosatdata bitfield - global->Infosatdata[mac].SetBit(ntohs(ishdr->pktnr),true); - #ifdef VDRDEBUG dsyslog("infosatepg: mac=%02x-%02x-%02x-%02x-%02x-%02x",eth_hdr.h_dest[0],eth_hdr.h_dest[1], eth_hdr.h_dest[2],eth_hdr.h_dest[3],eth_hdr.h_dest[4],eth_hdr.h_dest[5] ); @@ -165,7 +162,11 @@ void cFilterInfosatepg::Process(u_short Pid, u_char Tid, const u_char *Data, int #ifdef VDRDEBUG dsyslog("infosatepg: writing to %li",offset); #endif - write(f,infosatdata,len); + if (write(f,infosatdata,len)==len) + { + // set bit in Infosatdata bitfield + global->Infosatdata[mac].SetBit(ntohs(ishdr->pktnr),true); + } } close(f); |