Bug 1524648 - Relax assertion in MediaEngineWebRTCMicrophoneSource::Deallocate to take into account the fact that starting the device can have failed. r=pehrsons

Differential Revision: https://phabricator.services.mozilla.com/D18979

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Paul Adenot 2019-02-11 09:05:08 +00:00
Родитель 45f1a56cd2
Коммит 1711340313
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -443,7 +443,7 @@ nsresult MediaEngineWebRTCMicrophoneSource::Deallocate(
const RefPtr<const AllocationHandle>&) {
AssertIsOnOwningThread();
MOZ_ASSERT(mState == kStopped);
MOZ_ASSERT(mState == kStopped || mState == kAllocated);
class EndTrackMessage : public ControlMessage {
public: