summaryrefslogtreecommitdiff
path: root/dvbdevice.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-12-28 13:29:54 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-12-28 13:29:54 +0100
commit00e2415b81aa1808ab084874cb2eedccb89ec5ca (patch)
treecb9487c63a10e3a0d2cb5124233c8c2571c6cdd1 /dvbdevice.c
parent6a8a2cf5fb78a244db19a2b49da98e0d1d2d91a0 (diff)
downloadvdr-00e2415b81aa1808ab084874cb2eedccb89ec5ca.tar.gz
vdr-00e2415b81aa1808ab084874cb2eedccb89ec5ca.tar.bz2
Implemented cCamSlot::Decrypt()
Diffstat (limited to 'dvbdevice.c')
-rw-r--r--dvbdevice.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/dvbdevice.c b/dvbdevice.c
index 84c92654..3f70f20b 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.5 2013/10/21 08:59:59 kls Exp $
+ * $Id: dvbdevice.c 3.6 2013/12/28 13:21:37 kls Exp $
*/
#include "dvbdevice.h"
@@ -1668,7 +1668,10 @@ void cDvbDevice::CloseDvr(void)
bool cDvbDevice::GetTSPacket(uchar *&Data)
{
if (tsBuffer) {
- Data = tsBuffer->Get();
+ int Available;
+ Data = tsBuffer->Get(&Available);
+ if (Data && CamSlot())
+ CamSlot()->Decrypt(Data, Available);
return true;
}
return false;