From 5f8335c1e49ce108ef3481863833c98efa00411b Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 2 Jul 2020 23:09:26 +0200 Subject: sync with upstream --- .../VideoPlayer/Interface/Addon/DemuxPacket.h | 47 +++++++++++++--------- 1 file changed, 29 insertions(+), 18 deletions(-) (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h') diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h index f8ceab2..6da4838 100644 --- a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h +++ b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h @@ -9,32 +9,43 @@ #pragma once #include "TimingConstants.h" + #include #include #define DMX_SPECIALID_STREAMINFO -10 #define DMX_SPECIALID_STREAMCHANGE -11 -struct DemuxCryptoInfo; - -typedef struct DemuxPacket +#ifdef __cplusplus +extern "C" { - DemuxPacket() = default; +#endif /* __cplusplus */ + + struct DemuxCryptoInfo; + + typedef struct DemuxPacket + { + DemuxPacket() = default; + + uint8_t* pData = nullptr; + int iSize = 0; + int iStreamId = -1; + int64_t demuxerId = -1; // id of the demuxer that created the packet + int iGroupId = + -1; // the group this data belongs to, used to group data from different streams together - uint8_t *pData = nullptr; - int iSize = 0; - int iStreamId = -1; - int64_t demuxerId = -1; // id of the demuxer that created the packet - int iGroupId = -1; // the group this data belongs to, used to group data from different streams together + void* pSideData = nullptr; + int iSideDataElems = 0; - void *pSideData = nullptr; - int iSideDataElems = 0; + double pts = DVD_NOPTS_VALUE; + double dts = DVD_NOPTS_VALUE; + double duration = 0; // duration in DVD_TIME_BASE if available + int dispTime = 0; + bool recoveryPoint = false; - double pts = DVD_NOPTS_VALUE; - double dts = DVD_NOPTS_VALUE; - double duration = 0; // duration in DVD_TIME_BASE if available - int dispTime = 0; - bool recoveryPoint = false; + std::shared_ptr cryptoInfo; + } DemuxPacket; - std::shared_ptr cryptoInfo; -} DemuxPacket; +#ifdef __cplusplus +} /* extern "C" */ +#endif /* __cplusplus */ -- cgit v1.2.3