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)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla46
Tracking | Status | |
---|---|---|
firefox46 | --- | fixed |
People
(Reporter: ayang, Assigned: ayang)
References
Details
Attachments
(1 file, 1 obsolete file)
17.61 KB,
patch
|
ayang
:
review+
|
Details | Diff | Splinter Review |
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."
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → ayang
Assignee | ||
Comment 2•9 years ago
|
||
I found this bug when trying dom/media/mediasource/test/test_BufferingWait_mp4.html.
Comment 3•9 years ago
|
||
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.
Assignee | ||
Comment 4•9 years ago
|
||
(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.
Assignee | ||
Comment 5•9 years ago
|
||
1. Refine log
2. call flush after eos
Assignee | ||
Updated•9 years ago
|
Attachment #8706815 -
Flags: review?(sotaro.ikeda.g)
Updated•9 years ago
|
Priority: -- → P2
Comment 6•9 years ago
|
||
Comment on attachment 8706815 [details] [diff] [review]
reset_decoder_after_eos
LGTM.
Attachment #8706815 -
Flags: review?(sotaro.ikeda.g) → review+
Assignee | ||
Comment 7•9 years ago
|
||
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+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Keywords: checkin-needed
Comment 9•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox46:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla46
You need to log in
before you can comment on or make changes to this bug.
Description
•