[mythtv] Help: where to find info on channel encryption status
Nigel Pearson
nigel at ind.tansu.com.au
Wed Feb 3 02:26:10 UTC 2010
> 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.tansu.com.au|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. |
More information about the mythtv-dev
mailing list