If inputid is unsigned then checking if it is less then zero will
From: Erik Hovland <erik@hovland.org>
never be true no matter what the value is. This fix changes the type
to int instead of uint.
---
libs/libmythtv/dvbchannel.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libs/libmythtv/dvbchannel.cpp b/libs/libmythtv/dvbchannel.cpp
index ee57777..338e625 100644
a
|
b
|
void DVBChannel::SetTimeOffset(double offset) |
637 | 637 | |
638 | 638 | bool DVBChannel::Tune(const DTVMultiplex &tuning, QString inputname) |
639 | 639 | { |
640 | | uint inputid = inputname.isEmpty() ? currentInputID : GetInputByName(inputname); |
| 640 | int inputid = inputname.isEmpty() ? currentInputID : GetInputByName(inputname); |
641 | 641 | if (inputid < 0) |
642 | 642 | { |
643 | 643 | VERBOSE(VB_IMPORTANT, LOC_ERR + QString("Tune(): Invalid input '%1'.") |