Closed Bug 1706811 Opened 4 years ago Closed 4 years ago

Explicitly start the media sink after re-creating it, if it was playing before

Categories

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

task

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: alwu, Assigned: alwu)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

When updating the output capture in MDSM, we didn't restart the sink after recreating a new sink. The sink would actually get started later by MaybeStartPlayback() that would be checked periodly in the decoding and completed state.

However, we should make it explicitly start if the sink was playing before we recreate it, like what we did for SetSink()

When updating the output capture in MDSM, we didn't restart the sink after recreating it. The sink would actually get started later by MaybeStartPlayback() that would be checked periodly in the decoding and completed state.

However, we should make it explicitly start if the sink was playing before we recreate it, like what we did for SetSink() [1]

[1] https://searchfox.org/mozilla-central/rev/08013752b4638f01d41d2a38ca7bd741bc572c86/dom/media/MediaDecoderStateMachine.cpp#3803-3814

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6ec9b46cd0ea explicitly restart the media sink in 'UpdateOutputCaptured()' if it was playing before. r=bryce.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: