Closed
Bug 1079695
Opened 10 years ago
Closed 10 years ago
Improve audio clock calculation in MediaDecoderStateMachine
Categories
(Core :: Audio/Video, defect)
Core
Audio/Video
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: jwwang, Assigned: jwwang)
Details
Attachments
(3 files, 1 obsolete file)
2.25 KB,
patch
|
kinetik
:
review+
|
Details | Diff | Splinter Review |
6.22 KB,
patch
|
kinetik
:
review+
|
Details | Diff | Splinter Review |
8.54 KB,
patch
|
jwwang
:
review+
|
Details | Diff | Splinter Review |
As bug 1038091 landed which ensures the position returned by AudioStream will not go backward, we can do some refactoring to: 1. remove workarounds at [1] since the clock time will never go backward. 2. improve const-correctness by removing writes to |mPlayDuration| and |mPlayStartTime| at [2]. [1] http://hg.mozilla.org/mozilla-central/file/25a98bac9264/content/media/MediaDecoderStateMachine.cpp#l2735 [2] http://hg.mozilla.org/mozilla-central/file/25a98bac9264/content/media/MediaDecoderStateMachine.cpp#l2607
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → jwwang
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•10 years ago
|
||
Ensure position returned by AudioSink is mono-increasing. This prevents the state machine from switching back and forth between audio and system clocks when AudioSink::GetPosition() returns -1.
Attachment #8514772 -
Flags: review?(kinetik)
Assignee | ||
Comment 2•10 years ago
|
||
Remove workaround that keeps re-synchronizing audio clock in MediaDecoderStateMachine::GetClock due to audio clock drifting.
Attachment #8514774 -
Flags: review?(kinetik)
Assignee | ||
Comment 3•10 years ago
|
||
Fix const-correctness.
Attachment #8514775 -
Flags: review?(kinetik)
Assignee | ||
Comment 4•10 years ago
|
||
Try: https://tbpl.mozilla.org/?tree=Try&rev=bd3052450f85 Most green. The oranges in OS X 10.6 Debug are known issues.
Updated•10 years ago
|
Attachment #8514772 -
Flags: review?(kinetik) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8514774 [details] [diff] [review] 1079695_part2_remove_audioclock_workaround_in_MediaDecoderStateMachine.patch Review of attachment 8514774 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/media/MediaDecoderStateMachine.cpp @@ +2625,2 @@ > } > + // FIXME: This asseriton should also apply the case of decoding to a stream. Typo: assertion
Attachment #8514774 -
Flags: review?(kinetik) → review+
Updated•10 years ago
|
Attachment #8514775 -
Flags: review?(kinetik) → review+
Comment hidden (spam) |
Assignee | ||
Comment 7•10 years ago
|
||
fix typo.
Attachment #8514774 -
Attachment is obsolete: true
Attachment #8515714 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 8•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/79f524daf501 https://hg.mozilla.org/integration/mozilla-inbound/rev/1ba570e8ca42 https://hg.mozilla.org/integration/mozilla-inbound/rev/67ca0ab022e8
Keywords: checkin-needed
Comment 9•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/79f524daf501 https://hg.mozilla.org/mozilla-central/rev/1ba570e8ca42 https://hg.mozilla.org/mozilla-central/rev/67ca0ab022e8
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•