@@ -76,7 +76,6 @@ CWVCencSingleSampleDecrypter::CWVCencSingleSampleDecrypter(
7676 // prepare the promise before calling into CDM
7777 std::future<std::string> fut = m_cdmAdapter->PrepareSessionFuture (pid);
7878
79- LOG::LogF (LOGDEBUG, " Creating widevine session with promise ID: %u" , pid);
8079 m_cdmAdapter->GetCDM ()->CreateSessionAndGenerateRequest (
8180 pid, cdm::SessionType::kTemporary , cdm::InitDataType::kCenc ,
8281 m_pssh.data (), static_cast <uint32_t >(m_pssh.size ()));
@@ -141,7 +140,7 @@ void CWVCencSingleSampleDecrypter::GetCapabilities(const std::vector<uint8_t>& k
141140 if (!caps.hdcpLimit )
142141 caps.hdcpLimit = m_resolutionLimit;
143142
144- // optional override for webOS required for L1
143+ // optional override for webOS required for L1
145144 if (CSrvBroker::GetSettings ().IsSecurePathOverride ()) {
146145 LOG::LogF (LOGDEBUG,
147146 " Overriding settings to: SSD_SECURE PATH | SSD_ANNEXB_REQUIRED | SSD_SECURE_DECODER" );
@@ -475,7 +474,7 @@ void CWVCencSingleSampleDecrypter::RepackSubsampleData(AP4_DataBuffer& dataIn,
475474{
476475#ifdef TARGET_WEBOS
477476 // with kStreamTypeVideo we need to handle the SVP header so it is not lost
478- if (streamType == cdm::StreamType:: kStreamTypeVideo ) {
477+ if (streamType == DRM::DRMMediaType::VIDEO ) {
479478 const size_t encryptedBytes = bytesOfEncryptedData[subsamplePos];
480479 const size_t clearBytes = bytesOfCleartextData[subsamplePos];
481480
@@ -588,7 +587,7 @@ AP4_Result CWVCencSingleSampleDecrypter::DecryptSampleData(AP4_UI32 poolId,
588587 dataIn, payload, subsampleCount, fragInfo, iv,
589588 bytesOfCleartextData, bytesOfEncryptedData, convertAnnexB, rebuiltSubs);
590589 if (res != AP4_SUCCESS) {
591- LOG::LogF (LOGERROR, " [DecryptSampleData] ConvertToAnnexB failed: %d" , res);
590+ LOG::LogF (LOGERROR, " ConvertToAnnexBandInject failed: %d" , res);
592591 return res;
593592 }
594593 }
@@ -639,8 +638,6 @@ AP4_Result CWVCencSingleSampleDecrypter::DecryptSampleData(AP4_UI32 poolId,
639638 // Prepare CDM input using rebuiltSubs
640639 cdm::InputBuffer_2 cdmIn;
641640 SetInput (cdmIn, payload, static_cast <uint32_t >(rebuiltSubs.size ()), iv, fragInfo, rebuiltSubs);
642- LOG::LogF (LOGDEBUG, " [DecryptSampleData] CDM input prepared [V=%d] subSampleCount=%u" ,
643- streamType, static_cast <unsigned >(rebuiltSubs.size ()));
644641
645642 const size_t header_cushion = 64 ;
646643 m_decryptOut.Reserve (payload.GetDataSize () + dataOut.GetDataSize () + header_cushion);
@@ -652,16 +649,14 @@ AP4_Result CWVCencSingleSampleDecrypter::DecryptSampleData(AP4_UI32 poolId,
652649
653650 CheckLicenseRenewal ();
654651
655- cdm::Status ret = m_cdmAdapter->GetCDM ()->Decrypt (cdmIn, &cdmOut, streamType);
652+ cdm::Status ret = m_cdmAdapter->GetCDM ()->Decrypt (cdmIn, &cdmOut, ToCdmStreamType ( streamType) );
656653 if (ret != cdm::kSuccess ) {
657654 LOG::LogF (LOGERROR, " [DecryptSampleData] CDM->Decrypt failed, status=%d" , static_cast <int >(ret));
658655 return AP4_ERROR_INVALID_FORMAT;
659656 }
660657
661658 // Prefix (if any) + SVP-wrapped payload
662659 dataOut.AppendData (m_decryptOut.GetData (), m_decryptOut.GetDataSize ());
663- LOG::LogF (LOGDEBUG, " [DecryptSampleData] Secure-path success, forwarding CDM output size=%zu" ,
664- dataOut.GetDataSize ());
665660#else
666661 // Prefix (if IV) + raw payload
667662 dataOut.AppendData (payload.GetData (), payload.GetDataSize ());
@@ -856,7 +851,6 @@ CWVCencSingleSampleDecrypter::ConvertToAnnexBandInject(
856851 packetIn[2 ] == 0x00 &&
857852 packetIn[3 ] == 0x01 ))
858853 {
859- LOG::LogF (LOGDEBUG, " Injecting annex b header" );
860854 dataOut.AppendData (annexbStartCode, 4 );
861855 }
862856
0 commit comments