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

Unused function _abortBeforeAppend in SourceBufferSink #4014

Closed
lkinasiewicz opened this issue Aug 4, 2022 · 0 comments · Fixed by #4019
Closed

Unused function _abortBeforeAppend in SourceBufferSink #4014

lkinasiewicz opened this issue Aug 4, 2022 · 0 comments · Fixed by #4019
Labels
Milestone

Comments

@lkinasiewicz
Copy link
Contributor

lkinasiewicz commented Aug 4, 2022

Environment
  • Dash.js version: 4.4.1

Function _abortBeforeAppend in SourceBufferSink.js is not used. This is a function returning a promise but it is used as if it was a promise here:

promises.push(_abortBeforeAppend);
Therefore, it is never called.

Maybe this function can be safely removed or maybe it causes some bugs that I am not aware of and the mentioned line should be replaced like this:

        const promises = [];

-       promises.push(_abortBeforeAppend);
+       promises.push(_abortBeforeAppend());
        promises.push(updateAppendWindow(mediaInfo.streamInfo));
        promises.push(changeType(codec));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants