Bug 1496529 - P4. Remove unnecessary code. r=bryce
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 09 Oct 2018 16:59:12 +0000
changeset 488765 b76ae0d758d9ae80d762c901c0faa321ddba57f1
parent 488764 19cdb829699f0bcaa047c7a29bb9d6b494f4e412
child 488766 93312ff3f1808a9e79a961d879c340eee99a22b1
push id246
push userfmarier@mozilla.com
push dateSat, 13 Oct 2018 00:15:40 +0000
reviewersbryce
bugs1496529
milestone64.0a1
Bug 1496529 - P4. Remove unnecessary code. r=bryce TaskQueue no longer requires explicit shutdown Depends on D7862 Differential Revision: https://phabricator.services.mozilla.com/D7864
media/webrtc/signaling/src/media-conduit/WebrtcMediaDataDecoderCodec.cpp
--- a/media/webrtc/signaling/src/media-conduit/WebrtcMediaDataDecoderCodec.cpp
+++ b/media/webrtc/signaling/src/media-conduit/WebrtcMediaDataDecoderCodec.cpp
@@ -21,18 +21,16 @@ WebrtcMediaDataDecoder::WebrtcMediaDataD
       layers::ImageContainer::ASYNCHRONOUS))
   , mFactory(new PDMFactory())
   , mTrackType(TrackInfo::kUndefinedTrack)
 {
 }
 
 WebrtcMediaDataDecoder::~WebrtcMediaDataDecoder()
 {
-  mTaskQueue->BeginShutdown();
-  mTaskQueue->AwaitShutdownAndIdle();
 }
 
 int32_t
 WebrtcMediaDataDecoder::InitDecode(const webrtc::VideoCodec* aCodecSettings,
                                    int32_t aNumberOfCores)
 {
   nsCString codec;
   switch (aCodecSettings->codecType) {