diff options
| author | manuel <manuel@mausz.at> | 2018-08-30 00:42:04 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2018-08-30 00:42:04 +0200 |
| commit | 2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (patch) | |
| tree | cc9e1f8ea69eebca8416677b2470a5b3f11a850e /xbmc/cores/VideoPlayer/Interface/Addon | |
| parent | b3d195f0188758a14875a5a2f270e4fd190a679f (diff) | |
| download | kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.gz kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.bz2 kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.zip | |
sync with upstream
Diffstat (limited to 'xbmc/cores/VideoPlayer/Interface/Addon')
| -rw-r--r-- | xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h | 31 | ||||
| -rw-r--r-- | xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h | 24 | ||||
| -rw-r--r-- | xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h | 34 |
3 files changed, 30 insertions, 59 deletions
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h index e38e247..b48ef34 100644 --- a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h +++ b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h | |||
| @@ -1,22 +1,10 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Copyright (C) 2005-2016 Team XBMC | 2 | * Copyright (C) 2005-2018 Team Kodi |
| 3 | * http://kodi.tv | 3 | * This file is part of Kodi - https://kodi.tv |
| 4 | * | 4 | * |
| 5 | * This Program is free software; you can redistribute it and/or modify | 5 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 6 | * it under the terms of the GNU General Public License as published by | 6 | * See LICENSES/README.md for more information. |
| 7 | * the Free Software Foundation; either version 2, or (at your option) | 7 | */ |
| 8 | * any later version. | ||
| 9 | * | ||
| 10 | * This Program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with XBMC; see the file COPYING. If not, see | ||
| 17 | * <http://www.gnu.org/licenses/>. | ||
| 18 | * | ||
| 19 | */ | ||
| 20 | 8 | ||
| 21 | #pragma once | 9 | #pragma once |
| 22 | 10 | ||
| @@ -48,6 +36,13 @@ struct DemuxCryptoSession | |||
| 48 | delete[] sessionId; | 36 | delete[] sessionId; |
| 49 | } | 37 | } |
| 50 | 38 | ||
| 39 | bool operator == (const DemuxCryptoSession &other) const | ||
| 40 | { | ||
| 41 | return sessionIdSize == other.sessionIdSize && | ||
| 42 | keySystem == other.keySystem && | ||
| 43 | memcmp(sessionId, other.sessionId, sessionIdSize) == 0; | ||
| 44 | }; | ||
| 45 | |||
| 51 | // encryped stream infos | 46 | // encryped stream infos |
| 52 | char * sessionId; | 47 | char * sessionId; |
| 53 | uint16_t sessionIdSize; | 48 | uint16_t sessionIdSize; |
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h index b7404a3..5aed400 100644 --- a/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h +++ b/xbmc/cores/VideoPlayer/Interface/Addon/DemuxPacket.h | |||
| @@ -1,25 +1,13 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | /* | 1 | /* |
| 4 | * Copyright (C) 2012-2013 Team XBMC | 2 | * Copyright (C) 2012-2018 Team Kodi |
| 5 | * http://kodi.tv | 3 | * This file is part of Kodi - https://kodi.tv |
| 6 | * | ||
| 7 | * This Program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License as published by | ||
| 9 | * the Free Software Foundation; either version 2, or (at your option) | ||
| 10 | * any later version. | ||
| 11 | * | ||
| 12 | * This Program is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with XBMC; see the file COPYING. If not, see | ||
| 19 | * <http://www.gnu.org/licenses/>. | ||
| 20 | * | 4 | * |
| 5 | * SPDX-License-Identifier: GPL-2.0-or-later | ||
| 6 | * See LICENSES/README.md for more information. | ||
| 21 | */ | 7 | */ |
| 22 | 8 | ||
| 9 | #pragma once | ||
| 10 | |||
| 23 | #include "TimingConstants.h" | 11 | #include "TimingConstants.h" |
| 24 | #include <cstdint> | 12 | #include <cstdint> |
| 25 | #include <memory> | 13 | #include <memory> |
diff --git a/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h b/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h index 209897e..0672002 100644 --- a/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h +++ b/xbmc/cores/VideoPlayer/Interface/Addon/TimingConstants.h | |||
| @@ -1,31 +1,19 @@ | |||
| 1 | #pragma once | ||
| 2 | |||
| 3 | /* | 1 | /* |
| 4 | * Copyright (C) 2017 Team XBMC | 2 | * Copyright (C) 2017-2018 Team Kodi |
| 5 | * http://kodi.tv | 3 | * This file is part of Kodi - https://kodi.tv |
| 6 | * | 4 | * |
| 7 | * This Program is free software; you can redistribute it and/or modify | 5 | * SPDX-License-Identifier: GPL-2.0-or-later |
| 8 | * it under the terms of the GNU General Public License as published by | 6 | * See LICENSES/README.md for more information. |
| 9 | * the Free Software Foundation; either version 2, or (at your option) | 7 | */ |
| 10 | * any later version. | 8 | |
| 11 | * | 9 | #pragma once |
| 12 | * This Program is distributed in the hope that it will be useful, | ||
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 15 | * GNU General Public License for more details. | ||
| 16 | * | ||
| 17 | * You should have received a copy of the GNU General Public License | ||
| 18 | * along with XBMC; see the file COPYING. If not, see | ||
| 19 | * <http://www.gnu.org/licenses/>. | ||
| 20 | * | ||
| 21 | */ | ||
| 22 | 10 | ||
| 23 | #define DVD_TIME_BASE 1000000 | 11 | #define DVD_TIME_BASE 1000000 |
| 24 | #define DVD_NOPTS_VALUE 0xFFF0000000000000 | 12 | #define DVD_NOPTS_VALUE 0xFFF0000000000000 |
| 25 | 13 | ||
| 26 | #define DVD_TIME_TO_MSEC(x) ((int)((double)(x) * 1000 / DVD_TIME_BASE)) | 14 | constexpr int DVD_TIME_TO_MSEC(double x) { return static_cast<int>(x * 1000 / DVD_TIME_BASE); } |
| 27 | #define DVD_SEC_TO_TIME(x) ((double)(x) * DVD_TIME_BASE) | 15 | constexpr double DVD_SEC_TO_TIME(double x) { return x * DVD_TIME_BASE; } |
| 28 | #define DVD_MSEC_TO_TIME(x) ((double)(x) * DVD_TIME_BASE / 1000) | 16 | constexpr double DVD_MSEC_TO_TIME(double x) { return x * DVD_TIME_BASE / 1000; } |
| 29 | 17 | ||
| 30 | #define DVD_PLAYSPEED_PAUSE 0 // frame stepping | 18 | #define DVD_PLAYSPEED_PAUSE 0 // frame stepping |
| 31 | #define DVD_PLAYSPEED_NORMAL 1000 | 19 | #define DVD_PLAYSPEED_NORMAL 1000 |
