summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2014-01-02 10:47:08 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2014-01-02 10:47:08 +0100
commita84defe86f2331d42c06abeba17fd4aebe359d94 (patch)
treef0fb2af6a6237ca20a4869312d19e061c0225486 /dvbdevice.c
parent9dbd953cc239afaf833b977a42f78420ec0fe45a (diff)
downloadvdr-a84defe86f2331d42c06abeba17fd4aebe359d94.tar.gz
vdr-a84defe86f2331d42c06abeba17fd4aebe359d94.tar.bz2
Added support for buffered CAM decryption
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 481489b3..62f29dac 100644
--- a/dvbdevice.c
+++ b/dvbdevice.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbdevice.c 3.7 2014/01/01 14:14:32 kls Exp $
+ * $Id: dvbdevice.c 3.8 2014/01/02 10:30:15 kls Exp $
*/
#include "dvbdevice.h"
@@ -1673,8 +1673,10 @@ bool cDvbDevice::GetTSPacket(uchar *&Data)
if (tsBuffer) {
int Available;
Data = tsBuffer->Get(&Available);
- if (Data && CamSlot())
- CamSlot()->Decrypt(Data, Available);
+ if (Data && CamSlot()) {
+ Data = CamSlot()->Decrypt(Data, Available);
+ tsBuffer->Skip(Available);
+ }
return true;
}
return false;