From 2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a Mon Sep 17 00:00:00 2001 From: manuel Date: Thu, 30 Aug 2018 00:42:04 +0200 Subject: sync with upstream --- .../VideoPlayer/Interface/Addon/DemuxCrypto.h | 31 +++++++++------------- 1 file changed, 13 insertions(+), 18 deletions(-) (limited to 'xbmc/cores/VideoPlayer/Interface/Addon/DemuxCrypto.h') 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 @@ /* -* Copyright (C) 2005-2016 Team XBMC -* http://kodi.tv -* -* This Program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 2, or (at your option) -* any later version. -* -* This Program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with XBMC; see the file COPYING. If not, see -* . -* -*/ + * Copyright (C) 2005-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ #pragma once @@ -48,6 +36,13 @@ struct DemuxCryptoSession delete[] sessionId; } + bool operator == (const DemuxCryptoSession &other) const + { + return sessionIdSize == other.sessionIdSize && + keySystem == other.keySystem && + memcmp(sessionId, other.sessionId, sessionIdSize) == 0; + }; + // encryped stream infos char * sessionId; uint16_t sessionIdSize; -- cgit v1.2.3