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(dash): fix race condition in segment template #5842

Merged

Conversation

friday
Copy link
Contributor

@friday friday commented Nov 1, 2023

This was introduced in #5061.

If .release() is called between the time createUrisCb() is created and when it's called, then this.templateInfo_ is set to null, causing #5614 and #5760. The fix in #5619 may have been enough to fix or silence #5614, but it wasn't enough to fix #5760, which is the issue I'm having (at least I'm getting the same error).

Maybe @nrcrast can confirm this is the correct this.templateInfo_.mediaTemplate to pass to createUris_()? I don't fully understand the segment template (I have git bisected my way to find the issue). The initial PR draft for #5061 didn't actually have the race condition. It was introduced when addressing feedback about using .bind() for createUrisCb: #5061 (comment). So to me it seems like that change was unintentional.

@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@avelad avelad added type: bug Something isn't working correctly priority: P1 Big impact or workaround impractical; resolve before feature release component: DASH The issue involves the MPEG DASH manifest format labels Nov 1, 2023
@avelad avelad added this to the v4.6 milestone Nov 1, 2023
@avelad avelad merged commit 8d2b657 into shaka-project:main Nov 2, 2023
23 checks passed
@friday friday deleted the fix/live-streams-race-conditions-firefox branch November 2, 2023 09:49
Robloche pushed a commit to Robloche/shaka-player that referenced this pull request Nov 30, 2023
gkatsev pushed a commit to sky-hugolima/shaka-player-contrib that referenced this pull request Dec 6, 2023
…t#306)

* [PATCH] fix(dash): fix race condition in segment template (shaka-project#5842)

Fixes shaka-project#5760

* fix(cea): Fix not rendering CEA-608 Closed Captions (shaka-project#4683)

Also added H265 support and a framework for future TS CEA parser support.

Fixes shaka-project#4605
Fixes shaka-project#3659

Co-authored-by: Joey Parrish <joeyparrish@google.com>

* fix(cea): Fix not rendering CEA-608 on encrypted mp4 segments (shaka-project#4756)

Fixes shaka-project#4605

Co-authored-by: Joey Parrish <joeyparrish@google.com>

* fix: CEA 608 captions not work with H.265 video streams (shaka-project#5252)

Fix parsing of CEA 608 captions in H.265 video streams by handling 2
byte nal unit header.

Fixes shaka-project#5251

* fix: seeking in segment timeline returns incorrect index (shaka-project#5716)

Resolves shaka-project#5664

---------

Co-authored-by: Albin Larsson <albin.larsson@eyevinn.se>
Co-authored-by: Álvaro Velad Galván <ladvan91@hotmail.com>
Co-authored-by: Joey Parrish <joeyparrish@google.com>
Co-authored-by: Aidan Ridley <aidan.ridley@charter.corp-partner.google.com>
Co-authored-by: Casey Occhialini <1508707+littlespex@users.noreply.github.com>
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Jan 1, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Jan 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
component: DASH The issue involves the MPEG DASH manifest format priority: P1 Big impact or workaround impractical; resolve before feature release 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.

Release 4.4.2 freezes on some live streams
3 participants