Bug 398949

Summary: Clean PMT for descrambled recorded programms
Product: [Applications] kaffeine Reporter: knossos456 <knossos456>
Component: generalAssignee: Mauro Carvalho Chehab <mchehab>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 2.0.15   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Patch to apply to dvbsi.cpp (kaffeine 2.0.15 source)
Clean PMT for descrambled recorded programms if CAM is enabled

Description knossos456 2018-09-22 07:03:07 UTC
Created attachment 115160 [details]
Patch to apply to dvbsi.cpp (kaffeine 2.0.15 source)

SUMMARY

When we use CI Cam for DVB decryption, the recorded file (.m2t) have a PAT that is rebuild, ok but the PMT have still the original srambling descriptors (0x09).
This can excluded the file for some players and isen't clean.

Here is a patch proposal for dvbsi.cpp that correct the problem for Kaffeine 2.015.

Same patch can be apply in same function in earlier version, ex kaffeine 1.2.2.

SOFTWARE VERSIONS
Kaffeine 1.2.2 , 1.3.1, 2.0.15.. I havent tested version before and intermediates, but I think that this part of code wasen't finished since the beginings ....
Comment 1 Mauro Carvalho Chehab 2019-05-04 15:02:06 UTC
Created attachment 119839 [details]
Clean PMT for descrambled recorded programms if CAM is enabled

Please check if this patch works. It should be doing the same thing as yours, except that it will only strip CAM descriptors when there is a CI hardware.

Unfortunately, I'm unable to test it locally, as I don't have any CI module here.