mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
servo-media 1e28d1d997: don't unwrap ServoMedia::get() (#35049)
Signed-off-by: mcc <andi.m.mcclure@gmail.com>
This commit is contained in:
parent
7b15d9c44f
commit
d5993a0cea
7 changed files with 23 additions and 24 deletions
|
@ -35,7 +35,7 @@ impl MediaStreamAudioDestinationNode {
|
|||
options: &AudioNodeOptions,
|
||||
can_gc: CanGc,
|
||||
) -> Fallible<MediaStreamAudioDestinationNode> {
|
||||
let media = ServoMedia::get().unwrap();
|
||||
let media = ServoMedia::get();
|
||||
let (socket, id) = media.create_stream_and_socket(MediaStreamType::Audio);
|
||||
let stream = MediaStream::new_single(&context.global(), id, MediaStreamType::Audio, can_gc);
|
||||
let node_options = options.unwrap_or(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue