summaryrefslogtreecommitdiffstats
path: root/xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
committermanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
commit2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (patch)
treecc9e1f8ea69eebca8416677b2470a5b3f11a850e /xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h
parentb3d195f0188758a14875a5a2f270e4fd190a679f (diff)
downloadkodi-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/DemuxCrypto.h')
-rw-r--r--xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h31
1 files changed, 13 insertions, 18 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;