Hi everyone,
I'm looking to build a new CA mechanism for VLC (specifically, encryption of MPEG-2 TS to a higher standard than CSA). In the general case, everything works quite well. (I have written a series of hooks into TS demux, although the final version will be a completely separate filter).
However, occasionally VLC doesn't receive the decryption key quickly enough. In this scenario, VLC crashes and dies horribly because the downstream decoders receive encrypted data.
Is there some way to silently drop the TS packets in the demux() method until the stream is being decrypted? I've tried rewriting the packet headers to make the data look like MPEG-2 padding, but it didn't appear to solve the issue.
Thanks in advance.
Neil.