From 7e50a1decb168bf7f579ca5b26d2267c95ec3b05 Mon Sep 17 00:00:00 2001 From: CastagnaIT Date: Mon, 20 Apr 2026 19:14:36 +0200 Subject: [PATCH] Block attempts to play unsupported WebM streams with DRM --- src/main.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 8ce66d573..feb3730bc 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -263,6 +263,14 @@ bool CInputStreamAdaptive::OpenStream(int streamid) return false; } + if (stream->GetReader()->GetType() == ISampleReader::Type::WebM && + !stream->m_info.GetCryptoSession().GetSessionId().empty()) + { + //! @todo: it should be implemented on the WebM demuxer side and verify if appropriate changes are required on CDM + LOG::LogF(LOGERROR, "WebM container with DRM encrypted stream is not supported"); + return false; + } + stream->GetReader()->SetStreamId(stream->m_info.GetStreamType(), streamid); // In case of video quality change (OSD)