зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 2376ec200aec (bug 1245463)
This commit is contained in:
Родитель
45b0b8a19f
Коммит
4626394d1c
|
@ -157,7 +157,7 @@ void
|
|||
TrackBuffersManager::ResetParserState()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
MOZ_RELEASE_ASSERT(!mAppendRunning, "Append is running, abort must have been called");
|
||||
MOZ_ASSERT(!mAppendRunning, "AbortAppendData must have been called");
|
||||
MSE_DEBUG("");
|
||||
|
||||
// 1. If the append state equals PARSING_MEDIA_SEGMENT and the input buffer contains some complete coded frames, then run the coded frame processing algorithm until all of these complete coded frames have been processed.
|
||||
|
@ -334,7 +334,7 @@ void
|
|||
TrackBuffersManager::CompleteResetParserState()
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
MOZ_RELEASE_ASSERT(!mAppendRunning);
|
||||
MOZ_ASSERT(!mAppendRunning);
|
||||
MSE_DEBUG("");
|
||||
|
||||
for (auto& track : GetTracksList()) {
|
||||
|
@ -574,7 +574,7 @@ TrackBuffersManager::InitSegmentParserLoop()
|
|||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
||||
MOZ_RELEASE_ASSERT(mAppendPromise.IsEmpty() && !mAppendRunning);
|
||||
MOZ_ASSERT(mAppendPromise.IsEmpty() && !mAppendRunning);
|
||||
RefPtr<AppendPromise> p = mAppendPromise.Ensure(__func__);
|
||||
|
||||
AppendIncomingBuffers();
|
||||
|
@ -608,9 +608,6 @@ void
|
|||
TrackBuffersManager::SegmentParserLoop()
|
||||
{
|
||||
MOZ_ASSERT(OnTaskQueue());
|
||||
|
||||
mAppendRunning = true;
|
||||
|
||||
while (true) {
|
||||
// 1. If the input buffer is empty, then jump to the need more data step below.
|
||||
if (!mInputBuffer || mInputBuffer->IsEmpty()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче