Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Dev

Help: where to find info on channel encryption status

 

 

MythTV dev RSS feed   Index | Next | Previous | View Threaded


eallaud at gmail

Feb 2, 2010, 6:19 PM

Post #1 of 3 (642 views)
Permalink
Help: where to find info on channel encryption status

Hi all,
sorry to insist (you can check its not the first time I ask on the list
;-), but I need to understand how mythtv decides if the channel is
encrypted. I need this to "override" it if the provider wrongly flags a
channel.
I tried to change the is_encrypted field in the DB, but this is not
permanent...
Thx
Bye
Manu
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev


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


eallaud at gmail

Feb 3, 2010, 4:57 AM

Post #3 of 3 (599 views)
Permalink
Re: Help: where to find info on channel encryption status [In reply to]

Nigel Pearson a écrit :
>> 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
>
Thanks Nigel, I already tried this approach but well I guess I was
hoping someone with the knowledge could give me some pointers to the
good places to speed things up abit.
I am already in the process of spreading VERBOSES's everywhere to see
what is happening...
Bye
Manu
_______________________________________________
mythtv-dev mailing list
mythtv-dev [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

MythTV dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.