bool DVBChannel::SwitchToInput(int newInputNum, bool setstarting) { if (!ChannelBase::SwitchToInput(newInputNum, false)) return false; m_currentInputID = newInputNum; InputMap::const_iterator it = m_inputs.find(m_currentInputID); return SetChannelByString((*it)->startChanNum); }
bool DVBChannel::SwitchToInput(int newInputNum, bool setstarting) { (void)setstarting; InputMap::const_iterator it = m_inputs.find(newInputNum); if (it == m_inputs.end() || (*it)->startChanNum.isEmpty()) return false; uint mplexid_restriction; if (!IsInputAvailable(m_currentInputID, mplexid_restriction)) return false; nextInputID = newInputNum; return SetChannelByString((*it)->startChanNum); }
bool DVBChannel::SwitchToInput(const QString &inputname, const QString &chan) { int input = GetInputByName(inputname); bool ok = false; if (input >= 0) { m_currentInputID = input; ok = SetChannelByString(chan); } else { LOG(VB_GENERAL, LOG_ERR, LOC + QString("DVBChannel: Could not find input: %1 on card when " "setting channel %2\n").arg(inputname).arg(chan)); } return ok; }