Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cryptoSession when comparing hints (DVDStreamInfo) #13982

Merged
merged 1 commit into from Jun 5, 2018
Merged

Add cryptoSession when comparing hints (DVDStreamInfo) #13982

merged 1 commit into from Jun 5, 2018

Conversation

peak3d
Copy link
Contributor

@peak3d peak3d commented Jun 5, 2018

Description

When switching to another stream with same video properties as currently running one, the current decoder is reused. This fails for encrypted media if the new stream requres a separate crypto session.

This PR adds cryptoSession to the == / Equal operators to force decoder recreation on stream change.

Motivation and Context

Switching between seasons (automatic / manual) lead to VP stall (black screen with running busy sign)

How Has This Been Tested?

Win10 / amazon / any episode

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@peak3d peak3d requested a review from FernetMenta June 5, 2018 14:02
@peak3d peak3d added Type: Fix non-breaking change which fixes an issue Component: Video v18 Leia labels Jun 5, 2018
@peak3d peak3d added this to the Leia 18.0-alpha2 milestone Jun 5, 2018
return false;

if (cryptoSession &&
(cryptoSession->keySystem != right.cryptoSession->keySystem ||

This comment was marked as spam.

@@ -124,6 +125,15 @@ bool CDVDStreamInfo::Equal(const CDVDStreamInfo& right, bool withextradata)

// SUBTITLE

// Crypto
if ((cryptoSession.get() == nullptr) ^ (right.cryptoSession.get() == nullptr))

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Fix non-breaking change which fixes an issue v18 Leia
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants