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

Avoid warning logs when "creating" segments #1049

Merged
merged 1 commit into from
Jan 13, 2022

Conversation

peaBerberian
Copy link
Collaborator

@peaBerberian peaBerberian commented Jan 13, 2022

A small oversight led to the RxPlayer potentially logging a warning each time a segment is either created directly from the Manifest's information - which as far as I remember - only happens in Smooth contents or when no initialization segment exist (such as for subtitles).

Aside from this unnecessary warning, there should be no other real issue.

This warning was due to the fact that we're announcing the end of those segment's "requests" (between quotes as there there is in fact no request happening) two times in a row, breaking an assertion later in the code that ended request should be pending in the first place.

It's annoying that I saw that just after finalizing the release, but thankfully this is a very minor issue that will probably not bother
anyone, and should appear relatively rarely for DASH contents (maybe once when switching to a track with subtitles? Even this is unsure).

A small oversight led to the RxPlayer potentially logging a warning each
time a segment is either created directly from the Manifest's
information - which as far as I remember - only happens in Smooth
contents or when no initialization segment exist (such as for
subtitles).

Aside from this unnecessary warning, there should be no other real
issue.

This warning was due to the fact that we're anouncing the end of those
initialization's "requests" (between quotes as there there is in fact no
request happening) two times in a row, breaking an assertion later in
the code that ended request should be pending in the first place.

It's annoying that I saw that just after finalizing the release, but
thankfully this is a very minor issue that will probably not bother
anyone, and should appear relatively rarely for DASH contents (maybe once
when switching to a track with subtitles? Even this is unsure).
@peaBerberian peaBerberian force-pushed the fix/assertion-CI-issue branch from 57939fb to 2d44cc7 Compare January 13, 2022 17:18
@peaBerberian peaBerberian changed the title [WIP] Fix assertion breaking our CI Avoid warning logs when "creating" initialization segments Jan 13, 2022
@peaBerberian peaBerberian added this to the 3.27.0 milestone Jan 13, 2022
@peaBerberian peaBerberian changed the title Avoid warning logs when "creating" initialization segments Avoid warning logs when "creating" segments Jan 13, 2022
@peaBerberian peaBerberian merged commit 5c863be into master Jan 13, 2022
@peaBerberian peaBerberian mentioned this pull request Mar 17, 2022
@peaBerberian peaBerberian deleted the fix/assertion-CI-issue branch June 3, 2022 14:37
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.

1 participant