mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Allowing a tolerance for symbol rate values that are off by one
This commit is contained in:
parent
a27aafc74b
commit
90affbed35
@ -1818,3 +1818,6 @@ Marius Heidenstecker <marius@heidenstecker.de>
|
|||||||
|
|
||||||
Jurij Retzlaff <jurij@topofweb.de>
|
Jurij Retzlaff <jurij@topofweb.de>
|
||||||
for fixing learning keys when VDR is already running
|
for fixing learning keys when VDR is already running
|
||||||
|
|
||||||
|
Richard Lithvall <richard@lithvall.se>
|
||||||
|
for adding a tolerance for symbol rate values that are off by one
|
||||||
|
2
HISTORY
2
HISTORY
@ -4511,3 +4511,5 @@ Video Disk Recorder Revision History
|
|||||||
- Fixed the initial setting of the time transponder setup parameter (reported
|
- Fixed the initial setting of the time transponder setup parameter (reported
|
||||||
by Thomas Günther).
|
by Thomas Günther).
|
||||||
- Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey().
|
- Fixed unnecessary Set() calls in cMenuEditIntItem::ProcessKey().
|
||||||
|
- Allowing a tolerance for symbol rate values that are off by one (thanks to
|
||||||
|
Richard Lithvall).
|
||||||
|
@ -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: 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"
|
#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
|
// Sometimes the transponder frequency is set to 0, which is just wrong
|
||||||
if (Frequency == 0)
|
if (Frequency == 0)
|
||||||
return false;
|
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 (source != Source || frequency != Frequency || polarization != Polarization || srate != Srate || coderateH != CoderateH) {
|
||||||
if (Number()) {
|
if (Number()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user