mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Remove unnecessary Option.
This commit is contained in:
parent
6aacc9001b
commit
f02e516f32
6 changed files with 10 additions and 18 deletions
|
@ -1340,9 +1340,7 @@ impl HTMLMediaElement {
|
|||
|
||||
let audio_renderer = self.audio_renderer.borrow().as_ref().map(|r| r.clone());
|
||||
|
||||
let pipeline_id = window
|
||||
.pipeline_id()
|
||||
.expect("Cannot create player outside of a pipeline");
|
||||
let pipeline_id = window.pipeline_id();
|
||||
let client_context_id =
|
||||
ClientContextId::build(pipeline_id.namespace_id.0, pipeline_id.index.0.get());
|
||||
let player = ServoMedia::get().unwrap().create_player(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue