Closed
Bug 1305353
Opened 8 years ago
Closed 8 years ago
Remove MediaDecoderStateMachine::DiscardStreamData()
Categories
(Core :: Audio/Video: Playback, defect, P3)
Core
Audio/Video: Playback
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: jwwang, Assigned: jwwang)
References
Details
Attachments
(3 files)
DecodedStream should discard audio data that are played by MSG without the help from MDSM. This also allows us to remove audio-capture specific code from MDSM.
Assignee | ||
Updated•8 years ago
|
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•8 years ago
|
Attachment #8795968 -
Flags: review?(pehrson)
Attachment #8795969 -
Flags: review?(pehrson)
Attachment #8795970 -
Flags: review?(pehrson)
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8795968 [details]
Bug 1305353. Part 1 - publish output time to DecodedStream using MediaEventProducer.
https://reviewboard.mozilla.org/r/81952/#review80562
Attachment #8795968 -
Flags: review?(pehrson) → review+
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8795969 [details]
Bug 1305353. Part 2 - remove DecodedStreamData::GetPosition() and its friends.
https://reviewboard.mozilla.org/r/81954/#review80560
::: dom/media/mediasink/DecodedStream.cpp:269
(Diff revision 1)
> {
> AssertOwnerThread();
> MOZ_ASSERT(mStartTime.isNothing(), "playback already started.");
>
> mStartTime.emplace(aStartTime);
> + mLastOutputTime = 0;
nit: this should be in the previous patch.
Attachment #8795969 -
Flags: review?(pehrson) → review+
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8795970 [details]
Bug 1305353. Part 3 - discard audio samples in DecodedStream::NotifyOutput().
https://reviewboard.mozilla.org/r/81956/#review80564
::: dom/media/mediasink/DecodedStream.cpp:708
(Diff revision 1)
> DecodedStream::NotifyOutput(int64_t aTime)
> {
> AssertOwnerThread();
> mLastOutputTime = aTime;
> +
> + // Remove audio samples that are played by MSG from the queue.
nit: s/are played/have been played/
Attachment #8795970 -
Flags: review?(pehrson) → review+
Assignee | ||
Comment 7•8 years ago
|
||
Thanks for the review!
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 11•8 years ago
|
||
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a3ac424edcd3
Part 1 - publish output time to DecodedStream using MediaEventProducer. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/1929112d6a82
Part 2 - remove DecodedStreamData::GetPosition() and its friends. r=pehrsons
https://hg.mozilla.org/integration/autoland/rev/8305ce9fcda4
Part 3 - discard audio samples in DecodedStream::NotifyOutput(). r=pehrsons
Comment 12•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a3ac424edcd3
https://hg.mozilla.org/mozilla-central/rev/1929112d6a82
https://hg.mozilla.org/mozilla-central/rev/8305ce9fcda4
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in
before you can comment on or make changes to this bug.
Description
•