Closed Bug 1047824 Opened 12 years ago Closed 12 years ago

MP4Reader needs to call PlatformDecoderModule::Shutdown()

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: cpearce, Assigned: cpearce)

Details

Attachments

(2 files)

D'oh! MP4Reader was supposed to call PlatformDecoderModule::Shutdown(), but actually doesn't. It should... It should really also call PlatformDecoderModule::Shutdown() on the decode task queue instead of on the main thread (like the comments in PDM.h say), since every other call into the PDM is on the decode task queue too.
Attached patch PatchSplinter Review
* Make MP4Reader::Shutdown() override MediaDecoderReader::Shutdown(), so it's called on the decode task queue (instead (probably) the main thread in MP4Reader's dtor). This means MP4Reader::Shutdown()'s calls to MediaDataDecoder::Shutdown() and the shutdown of the decode task queues happen on the decode task queue instead of the main thread. * Add PDM::Shutdown() call to MP4Reader::Shutdown(), and adjust comments in PDM.h to match reality.
Attachment #8466641 - Flags: review?(kinetik)
* Make AppleDecoderModule::Shutdown() defer Unlink to the main thread; so it works when called from the decode task queue with patch 1 applied.
Attachment #8466642 - Flags: review?(giles)
Comment on attachment 8466642 [details] [diff] [review] Patch 2: Make Apple PDM Shutdown work OMT Review of attachment 8466642 [details] [diff] [review]: ----------------------------------------------------------------- r=me with syntax error addressed. ::: content/media/fmp4/apple/AppleDecoderModule.cpp @@ +69,2 @@ > nsresult > AppleDecoderModule::Shutdown() Missing open brace here.
Attachment #8466642 - Flags: review?(giles) → review+
Attachment #8466641 - Flags: review?(kinetik) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: