Skip to content

Commit

Permalink
Merge pull request #1633 from CastagnaIT/fix_licensedata
Browse files Browse the repository at this point in the history
[Session] Restored licenseData variable on for loop
  • Loading branch information
CastagnaIT committed Aug 11, 2024
2 parents cffbed6 + 5476b81 commit f0a2887
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,6 @@ bool CSession::InitializeDRM(bool addDefaultKID /* = false */)
}
}

std::string_view licenseData = CSrvBroker::GetKodiProps().GetLicenseData();
std::string_view licenseType = CSrvBroker::GetKodiProps().GetLicenseType();

// cdmSession 0 is reserved for unencrypted streams
Expand All @@ -382,7 +381,9 @@ bool CSession::InitializeDRM(bool addDefaultKID /* = false */)

if (sessionPsshset.adaptation_set_->GetStreamType() == StreamType::NOTYPE)
continue;


std::string_view licenseData = CSrvBroker::GetKodiProps().GetLicenseData();

if (m_adaptiveTree->GetTreeType() == adaptive::TreeType::SMOOTH_STREAMING)
{
if (licenseType == "com.widevine.alpha")
Expand Down

0 comments on commit f0a2887

Please sign in to comment.