Closed Bug 1661649 Opened 4 years ago Closed 4 years ago

Setting default sink id on a track with no prior sink id fails an assert

Categories

(Core :: Audio/Video: MediaStreamGraph, task, P2)

task

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox82 --- fixed

People

(Reporter: pehrsons, Assigned: pehrsons)

References

Details

Attachments

(3 files)

AudioStreamTrack::SetAudioOutputDevice seems to assume that when CrossGraphManager::Connect returns null we switch back from a non-null manager.

However, this is not always the case.

STR:
Have a media element playing a MediaStream with audio
Set the sink id of said media element to an explicit device
Set the sink id of said media element to the default device (i.e., "")
Add a fresh audio track to said media element

Expected:
Default device plays the fresh audio track

Actual: Assertion failure

Depends on: 1661668

Depends on D88822

Depends on D88823

Pushed by pehrsons@gmail.com: https://hg.mozilla.org/integration/autoland/rev/33fa9e803dec Minor test_setSinkId.html fixes. r=padenot https://hg.mozilla.org/integration/autoland/rev/82373b2b236a Add mochitest. r=padenot https://hg.mozilla.org/integration/autoland/rev/054f617aae48 Allow re-setting the default output device for a key on AudioStreamTrack. r=padenot
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch
Regressions: 1731076
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: