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: reset transmuxer in resetEverything #1213

Merged
merged 2 commits into from
Oct 14, 2021

Conversation

brandonocasey
Copy link
Contributor

@brandonocasey brandonocasey commented Oct 13, 2021

Description

After a call to resetEverything we won't have a videoBuffer. This means that we do not set segmentInfo.gopsToAlignWith = undefined as we check for a videoBuffer before setting it. Which means that we are still using the previous gopsToAlignWith in the transmuxer, which won't be correct. This will cause us to throw out valid video data.

@codecov
Copy link

codecov bot commented Oct 13, 2021

Codecov Report

Merging #1213 (d61559b) into main (14b8a7b) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1213   +/-   ##
=======================================
  Coverage   86.34%   86.34%           
=======================================
  Files          39       39           
  Lines        9695     9696    +1     
  Branches     2244     2244           
=======================================
+ Hits         8371     8372    +1     
  Misses       1324     1324           
Impacted Files Coverage Δ
src/segment-loader.js 96.23% <100.00%> (+<0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 14b8a7b...d61559b. Read the comment docs.

@brandonocasey brandonocasey changed the title fix: always set gopsToAlignWith so it is cleared when we have none fix: reset transmuxer in resetEverything Oct 13, 2021
@brandonocasey brandonocasey merged commit a83ea37 into main Oct 14, 2021
@brandonocasey brandonocasey deleted the fix/gop-align-without-buffer branch October 14, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants