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

fix: Fire correctly MIN_HDCP_VERSION_NOT_MATCH error #5047

Merged
merged 1 commit into from
Mar 1, 2023

Conversation

avelad
Copy link
Collaborator

@avelad avelad commented Mar 1, 2023

BEGIN_COMMIT_OVERRIDE
fix: Fire correctly MIN_HDCP_VERSION_NOT_MATCH error
END_COMMIT_OVERRIDE

@avelad avelad added type: bug Something isn't working correctly priority: P2 Smaller impact or easy workaround labels Mar 1, 2023
@avelad avelad added this to the v4.4 milestone Mar 1, 2023
@avelad avelad added the component: EME The issue involves the Encrypted Media Extensions web API label Mar 1, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2023

Incremental code coverage: 0.00%

@@ -940,6 +940,9 @@ shaka.media.DrmEngine = class {
}
this.destroyer_.ensureNotDestroyed();
} catch (e) {
if (e instanceof shaka.util.Error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm.
I spent a little bit looking at this, wondering if it would be better to just move the code that checks status so it happens after the try-catch block. It feels a little weird to produce an error inside the try-catch block, then handle it by just immediately throwing it again.
In the end I think this approach is probably the best, though. I could imagine someone adding some extra function call into the try block in the future, which can also throw a Shaka error, and not noticing the potential problem.

@avelad avelad merged commit 2ae5a99 into shaka-project:main Mar 1, 2023
@avelad
Copy link
Collaborator Author

avelad commented Mar 1, 2023

I don't understand why it has been merged in Spanish, if the title is in English, sometimes Safari is frustrating :/

@joeyparrish
Copy link
Member

joeyparrish commented Mar 1, 2023

Since the commit was merged into main that way, we need to use the commit override syntax to get it to show up in English in our changelogs. (https://shaka-project.github.io/maintenance/#fixing-release-notes)

@avelad avelad deleted the min-hdcp-error branch March 2, 2023 10:49
@github-actions github-actions bot added the status: archived Archived and locked; will not be updated label Jul 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: EME The issue involves the Encrypted Media Extensions web API priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants