Ticket #12891: multiplex_restriction_20160930.patch

File multiplex_restriction_20160930.patch, 1.1 KB (added by mike.bibbings@…, 4 years ago)

patch to channelbase.cpp

  • mythtv/libs/libmythtv/recorders/channelbase.cpp

    diff --git a/mythtv/libs/libmythtv/recorders/channelbase.cpp b/mythtv/libs/libmythtv/recorders/channelbase.cpp
    index 1126784..ae6fc2e 100644
    a b bool ChannelBase::IsTunable(const QString &channum) const 
    148148        return false;
    149149    }
    150150
    151     uint mplexid_restriction;
    152     uint chanid_restriction;
     151    uint mplexid_restriction = 0;
     152    uint chanid_restriction = 0;
    153153    if (!IsInputAvailable(mplexid_restriction, chanid_restriction))
    154154    {
    155155        LOG(VB_GENERAL, LOG_ERR, loc + " " +
    bool ChannelBase::IsTunable(const QString &channum) const 
    181181        return false;
    182182    }
    183183
    184     if ((mplexid_restriction && (mplexid != mplexid_restriction)) ||
    185         (chanid_restriction && (chanid != chanid_restriction)))
     184if ((mplexid_restriction && (mplexid != mplexid_restriction)) ||
     185        (!mplexid_restriction &&
     186         chanid_restriction && (chanid != chanid_restriction)))
    186187    {
    187188        LOG(VB_GENERAL, LOG_ERR, loc + " " +
    188189            QString("Channel is valid, but tuner is busy "