mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Workaround resume issues
This commit is contained in:
parent
cdd7995d34
commit
1c2d872e33
3 changed files with 27 additions and 20 deletions
|
@ -65,8 +65,8 @@ impl AudioNodeMethods for AudioNode {
|
|||
destination: &AudioNode,
|
||||
output: u32,
|
||||
input: u32) -> Fallible<DomRoot<AudioNode>> {
|
||||
if self.context != destination.Context() {
|
||||
return Err(Error::InvalidAccess);
|
||||
if *(self.context) != *(destination.Context()) {
|
||||
//XXX return Err(Error::InvalidAccess);
|
||||
}
|
||||
|
||||
if output >= self.NumberOfOutputs() ||
|
||||
|
@ -74,6 +74,8 @@ impl AudioNodeMethods for AudioNode {
|
|||
return Err(Error::IndexSize);
|
||||
}
|
||||
|
||||
// XXX Check previous connections.
|
||||
|
||||
self.context.audio_context_impl().connect_ports(
|
||||
self.node().output(output), destination.node().input(input)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue