mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added cMtdHandler::StopDecrypting()
This commit is contained in:
parent
67ea2163f4
commit
ba9ccc12a5
@ -3598,6 +3598,7 @@ Helmut Binder <cco@aon.at>
|
|||||||
override character table
|
override character table
|
||||||
for adding codes for more languages and special audio tracks
|
for adding codes for more languages and special audio tracks
|
||||||
for adding cMtdCamSlot::TsPostProcess()
|
for adding cMtdCamSlot::TsPostProcess()
|
||||||
|
for adding cMtdHandler::StopDecrypting()
|
||||||
|
|
||||||
Ulrich Eckhardt <uli@uli-eckhardt.de>
|
Ulrich Eckhardt <uli@uli-eckhardt.de>
|
||||||
for reporting a problem with shutdown after user inactivity in case a plugin is
|
for reporting a problem with shutdown after user inactivity in case a plugin is
|
||||||
|
1
HISTORY
1
HISTORY
@ -9470,3 +9470,4 @@ Video Disk Recorder Revision History
|
|||||||
Herdler).
|
Herdler).
|
||||||
- Added codes for more languages and special audio tracks (thanks to Helmut Binder).
|
- Added codes for more languages and special audio tracks (thanks to Helmut Binder).
|
||||||
- Added cMtdCamSlot::TsPostProcess() (thanks to Helmut Binder).
|
- Added cMtdCamSlot::TsPostProcess() (thanks to Helmut Binder).
|
||||||
|
- Added cMtdHandler::StopDecrypting() (thanks to Helmut Binder).
|
||||||
|
8
ci.c
8
ci.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: ci.c 4.27 2020/06/16 14:25:43 kls Exp $
|
* $Id: ci.c 4.28 2020/06/16 14:33:32 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ci.h"
|
#include "ci.h"
|
||||||
@ -2757,9 +2757,13 @@ void cCamSlot::StartDecrypting(void)
|
|||||||
void cCamSlot::StopDecrypting(void)
|
void cCamSlot::StopDecrypting(void)
|
||||||
{
|
{
|
||||||
cMutexLock MutexLock(&mutex);
|
cMutexLock MutexLock(&mutex);
|
||||||
|
if (mtdHandler) {
|
||||||
|
mtdHandler->StopDecrypting();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (caProgramList.Count()) {
|
if (caProgramList.Count()) {
|
||||||
caProgramList.Clear();
|
caProgramList.Clear();
|
||||||
if (!dynamic_cast<cMtdCamSlot *>(this))
|
if (!dynamic_cast<cMtdCamSlot *>(this) || !MasterSlot()->IsDecrypting())
|
||||||
SendCaPmt(CPCI_NOT_SELECTED);
|
SendCaPmt(CPCI_NOT_SELECTED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
12
mtd.c
12
mtd.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: mtd.c 1.15 2020/06/16 14:25:43 kls Exp $
|
* $Id: mtd.c 1.16 2020/06/16 14:33:32 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mtd.h"
|
#include "mtd.h"
|
||||||
@ -112,6 +112,14 @@ void cMtdHandler::StartDecrypting(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void cMtdHandler::StopDecrypting(void)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < camSlots.Size(); i++) {
|
||||||
|
if (camSlots[i]->Device())
|
||||||
|
camSlots[i]->StopDecrypting();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void cMtdHandler::CancelActivation(void)
|
void cMtdHandler::CancelActivation(void)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < camSlots.Size(); i++)
|
for (int i = 0; i < camSlots.Size(); i++)
|
||||||
@ -292,8 +300,6 @@ void cMtdCamSlot::StartDecrypting(void)
|
|||||||
void cMtdCamSlot::StopDecrypting(void)
|
void cMtdCamSlot::StopDecrypting(void)
|
||||||
{
|
{
|
||||||
cCamSlot::StopDecrypting();
|
cCamSlot::StopDecrypting();
|
||||||
if (!MasterSlot()->IsDecrypting())
|
|
||||||
MasterSlot()->StopDecrypting();
|
|
||||||
cMutexLock MutexLock(&clearMutex);
|
cMutexLock MutexLock(&clearMutex);
|
||||||
mtdMapper->Clear();
|
mtdMapper->Clear();
|
||||||
mtdBuffer->Clear();
|
mtdBuffer->Clear();
|
||||||
|
4
mtd.h
4
mtd.h
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: mtd.h 1.10 2020/06/16 14:25:43 kls Exp $
|
* $Id: mtd.h 1.11 2020/06/16 14:33:32 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MTD_H
|
#ifndef __MTD_H
|
||||||
@ -132,6 +132,8 @@ public:
|
|||||||
///< Returns true if any of the active MTD CAM slots is currently decrypting.
|
///< Returns true if any of the active MTD CAM slots is currently decrypting.
|
||||||
void StartDecrypting(void);
|
void StartDecrypting(void);
|
||||||
///< Tells all active MTD CAM slots to start decrypting.
|
///< Tells all active MTD CAM slots to start decrypting.
|
||||||
|
void StopDecrypting(void);
|
||||||
|
///< Tells all active MTD CAM slots to stop decrypting.
|
||||||
void CancelActivation(void);
|
void CancelActivation(void);
|
||||||
///< Tells all active MTD CAM slots to cancel activation.
|
///< Tells all active MTD CAM slots to cancel activation.
|
||||||
bool IsActivating(void);
|
bool IsActivating(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user