Closed Bug 1238878 Opened 9 years ago Closed 9 years ago

Do Flush command after EOS for MSE.

Categories

(Core :: Audio/Video: Playback, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: ayang, Assigned: ayang)

References

Details

Attachments

(1 file, 1 obsolete file)

MediaFormatReader could send more data after calling Drain (send EOS in OmxDataDecoder) in MSE case. In OMX, it won't accept any input after EOS, to fix it, we need to call flush command to reset decoder [1]. [1] spec 3.2.2.4 OMX_CommandFlush: "When a port is flushed, the component shall reset any internal state associated with the port so as to be ready to process from another location within the stream after the flush."
Attached patch reset_decoder_after_eos (obsolete) — Splinter Review
Assignee: nobody → ayang
I found this bug when trying dom/media/mediasource/test/test_BufferingWait_mp4.html.
Do you think the MediaFormatReader should always issue a Flush() command after a drain? Right now, following a drain, it may simply re-seek in the media and start feeding new data to the decoder.
(In reply to Jean-Yves Avenard [:jya] from comment #3) > Do you think the MediaFormatReader should always issue a Flush() command > after a drain? > > Right now, following a drain, it may simply re-seek in the media and start > feeding new data to the decoder. Yes, it'd be better IMHO.
1. Refine log 2. call flush after eos
Attachment #8706815 - Flags: review?(sotaro.ikeda.g)
Priority: -- → P2
Comment on attachment 8706815 [details] [diff] [review] reset_decoder_after_eos LGTM.
Attachment #8706815 - Flags: review?(sotaro.ikeda.g) → review+
After this patch, all 2015 MSE tests [1] are passed. (you need to press play button in test 20 and 42 due to preload is off on b2g IIRC) [1] http://yt-dash-mse-test.commondatastorage.googleapis.com/unit-tests/2015.html?timestamp=1452850350917
Attachment #8706815 - Attachment is obsolete: true
Attachment #8708249 - Flags: review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: