-
Notifications
You must be signed in to change notification settings - Fork 6
Revert "VPLAY-9274,VPLAY-11786:[DASH] optimization: independent track downloads" #696
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
base: dev_sprint_25_2
Are you sure you want to change the base?
Conversation
Coverity Issue - Double unlock"PushNextFragment" unlocks "pMediaStreamContext->mutex" while it is unlocked. Medium Impact, CWE-765 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
Coverity Issue - Double unlock"PushNextFragment" unlocks "pMediaStreamContext->mutex" while it is unlocked. Medium Impact, CWE-765 Issue locationThis issue was discovered outside the diff for this Pull Request. You can find it at: |
| mBasePeriodOffset += (pMediaStreamContext->fragmentTime - currFragTime); | ||
| } | ||
|
|
||
| if (PushNextFragment(pMediaStreamContext, getCurlInstanceByMediaType(static_cast<AampMediaType>(trackIdx)))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Double unlock
"PushNextFragment" unlocks "pMediaStreamContext->mutex" while it is unlocked.
Medium Impact, CWE-765
LOCK
| // Important DEBUG area, live downloader is delayed due to some external factors (Injector or Gstreamer) | ||
| if (pMediaStreamContext->IsInjectionFromCachedFragmentChunks()) | ||
| { | ||
| AAMPLOG_ERR("%s Live downloader is not advancing at the moment cache (%d / %d)", GetMediaTypeName((AampMediaType)trackIdx), pMediaStreamContext->numberOfFragmentChunksCached, pMediaStreamContext->maxCachedFragmentChunksPerTrack); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Data race condition
Accessing "pMediaStreamContext->numberOfFragmentChunksCached" without holding lock "MediaTrack.mutex". Elsewhere, "MediaTrack.numberOfFragmentChunksCached" is written to with "MediaTrack.mutex" held 4 out of 4 times (2 of these accesses strongly imply that it is necessary).
Medium Impact, CWE-366
MISSING_LOCK
| if(pMediaStreamContext->WaitForFreeFragmentAvailable(0)) | ||
| { | ||
| pMediaStreamContext->profileChanged = false; | ||
| FetchFragment(pMediaStreamContext, std::move(initialization), fragmentDuration, true, getCurlInstanceByMediaType(pMediaStreamContext->mediaType), //CurlContext 0=Video, 1=Audio) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Double unlock
"FetchFragment" unlocks "pMediaStreamContext->mutex" while it is unlocked.
Medium Impact, CWE-765
LOCK
| if(pMediaStreamContext->WaitForFreeFragmentAvailable(0)) | ||
| { | ||
| pMediaStreamContext->profileChanged = false; | ||
| FetchFragment(pMediaStreamContext, std::move(initialization), fragmentDuration, true, getCurlInstanceByMediaType(pMediaStreamContext->mediaType), //CurlContext 0=Video, 1=Audio) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Wait without held lock
"FetchFragment" waits while "pMediaStreamContext->mutex" is unlocked.
Medium Impact, CWE-667
LOCK
| { | ||
| uint32_t timeScale = 0; | ||
| if (buffer.getTimeScale(timeScale)) | ||
| buffer.getTimeScale(timeScale); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverity Issue - Unchecked return value
Calling "getTimeScale" without checking return value (as is done elsewhere 6 out of 6 times).
Medium Impact, CWE-252
CHECKED_RETURN
…05" (#686)"
This reverts commit aeaedc6.
Revert "VPLAY-9274:[DASH] optimization: independent track downloads (#614)"
This reverts commit 3746211.