| 1 |
/* |
| 2 |
* Copyright (C) 2023 Team Kodi |
| 3 |
* This file is part of Kodi - https://kodi.tv |
| 4 |
* |
| 5 |
* SPDX-License-Identifier: GPL-2.0-or-later |
| 6 |
* See LICENSES/README.md for more information. |
| 7 |
*/ |
| 8 |
|
| 9 |
#pragma once |
| 10 |
|
| 11 |
#include "cdm/media/cdm/cdm_adapter.h" |
| 12 |
|
| 13 |
class ATTR_DLL_LOCAL CdmDecryptedBlock : public cdm::DecryptedBlock |
| 14 |
{ |
| 15 |
public: |
| 16 |
CdmDecryptedBlock() : m_buffer(0), m_timeStamp(0){}; |
| 17 |
virtual ~CdmDecryptedBlock(){}; |
| 18 |
|
| 19 |
virtual void SetDecryptedBuffer(cdm::Buffer* buffer) override { m_buffer = buffer; }; |
| 20 |
virtual cdm::Buffer* DecryptedBuffer() override { return m_buffer; }; |
| 21 |
|
| 22 |
virtual void SetTimestamp(int64_t timestamp) override { m_timeStamp = timestamp; }; |
| 23 |
virtual int64_t Timestamp() const override { return m_timeStamp; }; |
| 24 |
|
| 25 |
private: |
| 26 |
cdm::Buffer* m_buffer; |
| 27 |
int64_t m_timeStamp; |
| 28 |
}; |