Skip to content

Commit f6deb2e

Browse files
authored
Merge pull request #2020 from CastagnaIT/webm_drm_unsupported
Block attempts to play unsupported WebM streams with DRM
2 parents f7ba725 + 7e50a1d commit f6deb2e

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
@@ -263,6 +263,14 @@ bool CInputStreamAdaptive::OpenStream(int streamid)
263263
return false;
264264
}
265265

266+
if (stream->GetReader()->GetType() == ISampleReader::Type::WebM &&
267+
!stream->m_info.GetCryptoSession().GetSessionId().empty())
268+
{
269+
//! @todo: it should be implemented on the WebM demuxer side and verify if appropriate changes are required on CDM
270+
LOG::LogF(LOGERROR, "WebM container with DRM encrypted stream is not supported");
271+
return false;
272+
}
273+
266274
stream->GetReader()->SetStreamId(stream->m_info.GetStreamType(), streamid);
267275

268276
// In case of video quality change (OSD)

0 commit comments

Comments
 (0)