mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 968144 - Stop sending frame when camera stopping. r=jesup
This commit is contained in:
parent
776fccc3e4
commit
28f4833f63
@ -602,6 +602,9 @@ MediaEngineWebRTCVideoSource::HandleEvent(const nsAString& error) {
|
||||
void
|
||||
MediaEngineWebRTCVideoSource::OnNewFrame(const gfxIntSize& aIntrinsicSize, layers::Image* aImage) {
|
||||
MonitorAutoLock enter(mMonitor);
|
||||
if (mState == kStopped) {
|
||||
return;
|
||||
}
|
||||
mImage = aImage;
|
||||
if (mWidth != aIntrinsicSize.width || mHeight != aIntrinsicSize.height) {
|
||||
mWidth = aIntrinsicSize.width;
|
||||
|
Loading…
Reference in New Issue
Block a user