Closed Bug 1305353 Opened 8 years ago Closed 8 years ago

Remove MediaDecoderStateMachine::DiscardStreamData()

Categories

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

defect

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: nobody → jwwang
Blocks: 1295892
Priority: -- → P3
Attachment #8795968 - Flags: review?(pehrson)
Attachment #8795969 - Flags: review?(pehrson)
Attachment #8795970 - Flags: review?(pehrson)
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 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 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+
Thanks for the review!
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
Depends on: 1306813
Blocks: 1315586
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: