
nigel at ind
Feb 2, 2010, 6:26 PM
Post #2 of 3
(606 views)
Permalink
|
|
Re: Help: where to find info on channel encryption status
[In reply to]
|
|
> how mythtv decides if the channel is encrypted. % find . -name \*.cpp -exec egrep crypt {} \; -print ... seenCrypt(QObject::tr("Seen")+" Crypt", "seen_crypt", 1, true, 0, 1, 0), matchingCrypt(QObject::tr("Matching")+" Crypt", "matching_crypt", ignore_encrypted(false) if (pmt->IsEncrypted()) GetStreamData()->TestDecryption(pmt); if (pmt->IsEncrypted() && !ignore_encrypted) void DTVSignalMonitor::HandleEncryptionStatus(uint, bool enc_status) ./libs/libmythtv/dtvsignalmonitor.cpp ... QMutexLocker locker(&_encryption_lock); // QString("Setting up decryption monitoring " bool encrypted = pmt->IsProgramEncrypted(); if (!encrypted && !pmt->IsStreamEncrypted(i)) AddEncryptionTestPID( void MPEGStreamData::ResetDecryptionMonitoringState(void) QMutexLocker locker(&_encryption_lock); _encryption_pid_to_info.clear(); _encryption_pid_to_pnums.clear(); _encryption_pnum_to_pids.clear(); bool MPEGStreamData::IsProgramDecrypted(uint pnum) const QMutexLocker locker(&_encryption_lock); return _encryption_pnum_to_status[pnum] == kEncDecrypted; bool MPEGStreamData::IsProgramEncrypted(uint pnum) const QMutexLocker locker(&_encryption_lock); return _encryption_pnum_to_status[pnum] == kEncEncrypted; if (kEncDecrypted == status) return "Decrypted"; else if (kEncEncrypted == status) return "Encrypted"; ... ./libs/libmythtv/mpeg/mpegstreamdata.cpp et c. -- Nigel Pearson, nigel [at] ind|Smart mice ... varmints| Telstra Net. Eng., Sydney, Australia |used vector formulas. | Office: 9202 3900 Fax: 9212 6348 | How'd you catch them?| Mobile: 0408 664435 Home: 9792 6998 |Smart cheese. | _______________________________________________ mythtv-dev mailing list mythtv-dev [at] mythtv http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
|