From 90affbed3527d1e0028cdb7ee2d7ca6adb0649f0 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 14 Apr 2006 10:48:14 +0200 Subject: [PATCH] Allowing a tolerance for symbol rate values that are off by one --- CONTRIBUTORS | 3 +++ HISTORY | 2 ++ channels.c | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 1158a487..ea8f1547 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -1818,3 +1818,6 @@ Marius Heidenstecker Jurij Retzlaff for fixing learning keys when VDR is already running + +Richard Lithvall + for adding a tolerance for symbol rate values that are off by one diff --git a/HISTORY b/HISTORY index c753b6b1..0fe2c5cd 100644 --- a/HISTORY +++ b/HISTORY @@ -4511,3 +4511,5 @@ Video Disk Recorder Revision History - Fixed the initial setting of the time transponder setup parameter (reported by Thomas Günther). - Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey(). +- Allowing a tolerance for symbol rate values that are off by one (thanks to + Richard Lithvall). 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()) {