Skip to content

Commit 15327c2

Browse files
committed
Block attempts to play unsupported WebM streams with DRM
1 parent f7ba725 commit 15327c2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,14 @@ bool CInputStreamAdaptive::OpenStream(int streamid)
284284
}
285285
}
286286

287+
if (stream->GetReader() && stream->GetReader()->GetType() == ISampleReader::Type::WebM &&
288+
!stream->m_info.GetCryptoSession().GetSessionId().empty())
289+
{
290+
//! @todo: it should be implemented on the WebM demuxer side and verify if appropriate changes are required on CDM
291+
LOG::LogF(LOGERROR, "WebM container with DRM encrypted stream is not supported");
292+
return false;
293+
}
294+
287295
m_session->EnableStream(stream, true);
288296

289297
// If stream use DRM always update stream info

0 commit comments

Comments
 (0)