mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 900419 - Media Recording - MediaRecorder's state is wrong when stopping media stream during recording. r=roc
This commit is contained in:
parent
261b23f442
commit
9e2e522185
@ -89,6 +89,7 @@ public:
|
|||||||
NS_IMETHODIMP Run()
|
NS_IMETHODIMP Run()
|
||||||
{
|
{
|
||||||
MOZ_ASSERT(NS_IsMainThread());
|
MOZ_ASSERT(NS_IsMainThread());
|
||||||
|
mRecorder->mState = RecordingState::Inactive;
|
||||||
mRecorder->DispatchSimpleEvent(NS_LITERAL_STRING("stop"));
|
mRecorder->DispatchSimpleEvent(NS_LITERAL_STRING("stop"));
|
||||||
mRecorder->mReadThread->Shutdown();
|
mRecorder->mReadThread->Shutdown();
|
||||||
mRecorder->mReadThread = nullptr;
|
mRecorder->mReadThread = nullptr;
|
||||||
@ -228,7 +229,6 @@ MediaRecorder::Stop(ErrorResult& aResult)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
mTrackUnionStream->RemoveListener(mEncoder);
|
mTrackUnionStream->RemoveListener(mEncoder);
|
||||||
mState = RecordingState::Inactive;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user