Closed Bug 1181504 Opened 10 years ago Closed 10 years ago

Remove MediaDecoderStateMachine::mAudioStartTime

Categories

(Core :: Audio/Video, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

Details

Attachments

(2 files)

AudioSink keeps the time of the first audio frame in mStartTime. By having AudioSink::AudioSink() return a time including mStartTime, we can remove MediaDecoderStateMachine::mAudioStartTime. This bug also makes it easier to unify the behaviors of AudioSink and DecodedStream which are consumers of media data.
Ensure mAudioSink is non-null in MediaDecoderStateMachine::GetAudioClock().
Assignee: nobody → jwwang
Status: NEW → ASSIGNED
Attachment #8631376 - Flags: review?(kinetik)
Remove MediaDecoderStateMachine::mAudioStartTime.
Attachment #8631377 - Flags: review?(kinetik)
Comment on attachment 8631377 [details] [diff] [review] 1181504_part2_remove_mAudioStartTime-v1.patch Review of attachment 8631377 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/media/AudioSink.cpp @@ -71,2 @@ > { > - NS_ASSERTION(mStartTime != -1, "Should have audio start time by now"); Due to the recent refactoring of MDSM, start time is always 0 now. So audio start time is always >= 0.
Attachment #8631376 - Flags: review?(kinetik) → review+
Comment on attachment 8631377 [details] [diff] [review] 1181504_part2_remove_mAudioStartTime-v1.patch Review of attachment 8631377 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/media/AudioSink.cpp @@ +72,2 @@ > { > + // Remove this.
Attachment #8631377 - Flags: review?(kinetik) → review+
Thanks for the review!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: