Skip to content

Commit

Permalink
Merge pull request #1634 from CastagnaIT/fix_licensedata_omega
Browse files Browse the repository at this point in the history
[Session] Restored licenseData variable on for loop
  • Loading branch information
CastagnaIT authored Aug 11, 2024
2 parents 9827988 + addac6b commit f2cadb0
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 @@ -388,7 +388,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 @@ -401,7 +400,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 f2cadb0

Please sign in to comment.