summaryrefslogtreecommitdiff
path: root/channels.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2006-04-14 10:48:14 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2006-04-14 10:48:14 +0200
commit90affbed3527d1e0028cdb7ee2d7ca6adb0649f0 (patch)
treeaf9e699c8aef087f9d651f3f76008396fc895ffe /channels.c
parenta27aafc74b9df47be4a1cc051312fa493771fe25 (diff)
downloadvdr-90affbed3527d1e0028cdb7ee2d7ca6adb0649f0.tar.gz
vdr-90affbed3527d1e0028cdb7ee2d7ca6adb0649f0.tar.bz2
Allowing a tolerance for symbol rate values that are off by one
Diffstat (limited to 'channels.c')
-rw-r--r--channels.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/channels.c b/channels.c
index c4000616..12462d35 100644
--- a/channels.c
+++ b/channels.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.c 1.49 2006/02/28 13:54:34 kls Exp $
+ * $Id: channels.c 1.50 2006/04/14 10:44:57 kls Exp $
*/
#include "channels.h"
@@ -293,6 +293,9 @@ bool cChannel::SetSatTransponderData(int Source, int Frequency, char Polarizatio
// Sometimes the transponder frequency is set to 0, which is just wrong
if (Frequency == 0)
return false;
+ // Sometimes the symbol rate is off by one
+ if (abs(srate - Srate) <= 1)
+ Srate = srate;
if (source != Source || frequency != Frequency || polarization != Polarization || srate != Srate || coderateH != CoderateH) {
if (Number()) {