mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1201393. Remove usage of FLAG_BLOCK_* from OutputStreamData::Connect. r=jwwang
We don't want to block stream decoding on the output MediaStream, or vice versa.
This commit is contained in:
parent
f0c1da06d1
commit
cc6d903f10
@ -253,10 +253,7 @@ OutputStreamData::Connect(MediaStream* aStream)
|
||||
MOZ_ASSERT(!mPort, "Already connected?");
|
||||
MOZ_ASSERT(!mStream->IsDestroyed(), "Can't connect a destroyed stream.");
|
||||
|
||||
// The output stream must stay in sync with the input stream, so if
|
||||
// either stream is blocked, we block the other.
|
||||
mPort = mStream->AllocateInputPort(aStream,
|
||||
MediaInputPort::FLAG_BLOCK_INPUT | MediaInputPort::FLAG_BLOCK_OUTPUT);
|
||||
mPort = mStream->AllocateInputPort(aStream, 0);
|
||||
// Unblock the output stream now. The input stream is responsible for
|
||||
// controlling blocking from now on.
|
||||
mStream->ChangeExplicitBlockerCount(-1);
|
||||
|
Loading…
Reference in New Issue
Block a user