Ticket #1485: head_signalmonitor-support-current-tsid-n-netid.diff

File head_signalmonitor-support-current-tsid-n-netid.diff, 1.9 KB (added by Stuart Auchterlonie, 15 years ago)

add's routines to getcurrent tsid & netid from signalmonitor

  • libs/libmythtv/dtvsignalmonitor.cpp

    old new  
    3636      matchingNIT(tr("Matching")+" NIT", "matching_nit", 1, true, 0, 1, 0),
    3737      matchingSDT(tr("Matching")+" SDT", "matching_sdt", 1, true, 0, 1, 0),
    3838      majorChannel(-1), minorChannel(-1), programNumber(-1),
     39      currentNetworkID(0), currentTransportID(0),
    3940      ignoreEncrypted(true),
    4041      error("")
    4142{
     
    353354    DBG_SM("SetSDT()", QString("tsid = %1 orig_net_id = %2")
    354355           .arg(sdt->TSID()).arg(sdt->OriginalNetworkID()));
    355356    AddFlags(kDTVSigMon_SDTSeen);
     357    currentNetworkID = sdt->OriginalNetworkID();
     358    currentTransportID = sdt->TSID();
    356359    if (!GetDVBStreamData())
    357360        return;
    358361}
  • libs/libmythtv/dtvsignalmonitor.h

    old new  
    3434    void SetProgramNumber(int progNum);
    3535    int  GetProgramNumber() const { return programNumber; }
    3636
     37    uint GetCurrentNetworkID(void)   const  { return currentNetworkID; }
     38    uint GetCurrentTransportID(void) const  { return currentTransportID; }
     39
    3740    void SetFTAOnly(bool fta)    { ignoreEncrypted = fta;  }
    3841    bool GetFTAOnly() const      { return ignoreEncrypted; }
    3942
     
    106109    int                majorChannel;
    107110    int                minorChannel;
    108111    int                programNumber;
     112    uint               currentNetworkID;
     113    uint               currentTransportID;
    109114    bool               ignoreEncrypted;
    110115    QString            error;
    111116};