Bug 1359668 - update mSettings.mWidth and mSettings.mHeight when there is a frame size change. r=jib

MozReview-Commit-ID: GGagmRai3YP

--HG--
extra : rebase_source : 59424be217afd4bea89b0ab3366a8fd26086174d
This commit is contained in:
Munro Mengjue Chiang 2017-04-28 17:54:42 +08:00
Родитель 0d1233d865
Коммит fe3c2d3e77
1 изменённых файлов: 7 добавлений и 0 удалений

Просмотреть файл

@ -356,6 +356,13 @@ MediaEngineRemoteVideoSource::FrameSizeChange(unsigned int w, unsigned int h)
LOG(("MediaEngineRemoteVideoSource Video FrameSizeChange: %ux%u was %ux%u", w, h, mWidth, mHeight));
mWidth = w;
mHeight = h;
RefPtr<MediaEngineRemoteVideoSource> that = this;
NS_DispatchToMainThread(media::NewRunnableFrom([that, w, h]() mutable {
that->mSettings.mWidth.Value() = w;
that->mSettings.mHeight.Value() = h;
return NS_OK;
}));
}
}