mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1771411 - Use LifecycleStateRef() in an MTG lifecycle assertion. r=karlt
Differential Revision: https://phabricator.services.mozilla.com/D148115
This commit is contained in:
parent
5e438354e2
commit
f40adcf8b3
@ -3810,14 +3810,9 @@ void MediaTrackGraphImpl::PendingResumeOperation::Apply(
|
||||
|
||||
void MediaTrackGraphImpl::PendingResumeOperation::Abort() {
|
||||
// The graph is shutting down before the operation completed.
|
||||
#ifdef DEBUG
|
||||
{
|
||||
MonitorAutoLock lock(mDestinationTrack->GraphImpl()->mMonitor);
|
||||
MOZ_ASSERT(!mDestinationTrack->GraphImpl() ||
|
||||
mDestinationTrack->GraphImpl()->mLifecycleState ==
|
||||
MediaTrackGraphImpl::LIFECYCLE_WAITING_FOR_THREAD_SHUTDOWN);
|
||||
}
|
||||
#endif
|
||||
MOZ_ASSERT(!mDestinationTrack->GraphImpl() ||
|
||||
mDestinationTrack->GraphImpl()->LifecycleStateRef() ==
|
||||
MediaTrackGraphImpl::LIFECYCLE_WAITING_FOR_THREAD_SHUTDOWN);
|
||||
mHolder.Reject(false, __func__);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user