browser(firefox): Win build fix (#2822)
This commit is contained in:
parent
05b019f1ba
commit
605257b1a0
|
|
@ -1 +1 @@
|
||||||
1119
|
1120
|
||||||
|
|
|
||||||
|
|
@ -112,14 +112,13 @@ nsresult nsScreencastService::StartVideoRecording(nsIDocShell* aDocShell, const
|
||||||
mozilla::widget::CompositorWidgetInitData initData;
|
mozilla::widget::CompositorWidgetInitData initData;
|
||||||
widget->GetCompositorWidgetInitData(&initData);
|
widget->GetCompositorWidgetInitData(&initData);
|
||||||
const mozilla::widget::GtkCompositorWidgetInitData& gtkInitData = initData.get_GtkCompositorWidgetInitData();
|
const mozilla::widget::GtkCompositorWidgetInitData& gtkInitData = initData.get_GtkCompositorWidgetInitData();
|
||||||
# ifdef MOZ_X11
|
|
||||||
nsCString windowId;
|
nsCString windowId;
|
||||||
|
# ifdef MOZ_X11
|
||||||
windowId.AppendPrintf("%lu", gtkInitData.XWindow());
|
windowId.AppendPrintf("%lu", gtkInitData.XWindow());
|
||||||
# else
|
# else
|
||||||
// TODO: support in wayland
|
// TODO: support in wayland
|
||||||
return NS_ERROR_NOT_IMPLEMENTED;
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
# endif
|
# endif
|
||||||
#endif
|
|
||||||
*sessionId = ++mLastSessionId;
|
*sessionId = ++mLastSessionId;
|
||||||
nsCString error;
|
nsCString error;
|
||||||
RefPtr<ScreencastEncoder> encoder = ScreencastEncoder::create(error, PromiseFlatCString(aFileName), 1280, 960, Nothing());
|
RefPtr<ScreencastEncoder> encoder = ScreencastEncoder::create(error, PromiseFlatCString(aFileName), 1280, 960, Nothing());
|
||||||
|
|
@ -134,6 +133,10 @@ nsresult nsScreencastService::StartVideoRecording(nsIDocShell* aDocShell, const
|
||||||
|
|
||||||
mIdToSession.emplace(*sessionId, std::move(session));
|
mIdToSession.emplace(*sessionId, std::move(session));
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
#else
|
||||||
|
// TODO: support Windows and Mac.
|
||||||
|
return NS_ERROR_NOT_IMPLEMENTED;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
nsresult nsScreencastService::StopVideoRecording(int32_t sessionId) {
|
nsresult nsScreencastService::StopVideoRecording(int32_t sessionId) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue