Skip to content

Commit

Permalink
log / fail on kNoKey DRM Error
Browse files Browse the repository at this point in the history
  • Loading branch information
peak3d committed Jun 5, 2018
1 parent 1962cfd commit 6a1a765
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wvdecrypter/wvdecrypter.cpp
Expand Up @@ -1289,7 +1289,16 @@ SSD_DECODE_RETVAL WV_CencSingleSampleDecrypter::DecodeVideo(void* hostInstance,
if (ret == cdm::Status::kSuccess || (cdm_in.data && ret == cdm::Status::kNeedMoreData))
return VC_NONE;
else
{
if (ret == cdm::Status::kNoKey)
{
char buf[36]; buf[32] = 0;
AP4_FormatHex(cdm_in.key_id, cdm_in.key_id_size, buf);
Log(SSD_HOST::LL_ERROR, "DecodeVideo: kNoKey for key %s", buf);
return VC_EOF;
}
return VC_ERROR;
}
}
else if (picture)
{
Expand Down

0 comments on commit 6a1a765

Please sign in to comment.