Skip to content

Commit

Permalink
browser(firefox): Win build fix (#2822)
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s authored Jul 2, 2020
1 parent 05b019f commit 605257b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion browser_patches/firefox/BUILD_NUMBER
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1119
1120
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,13 @@ nsresult nsScreencastService::StartVideoRecording(nsIDocShell* aDocShell, const
mozilla::widget::CompositorWidgetInitData initData;
widget->GetCompositorWidgetInitData(&initData);
const mozilla::widget::GtkCompositorWidgetInitData& gtkInitData = initData.get_GtkCompositorWidgetInitData();
# ifdef MOZ_X11
nsCString windowId;
# ifdef MOZ_X11
windowId.AppendPrintf("%lu", gtkInitData.XWindow());
# else
// TODO: support in wayland
return NS_ERROR_NOT_IMPLEMENTED;
# endif
#endif
*sessionId = ++mLastSessionId;
nsCString error;
RefPtr<ScreencastEncoder> encoder = ScreencastEncoder::create(error, PromiseFlatCString(aFileName), 1280, 960, Nothing());
Expand All @@ -134,6 +133,10 @@ nsresult nsScreencastService::StartVideoRecording(nsIDocShell* aDocShell, const

mIdToSession.emplace(*sessionId, std::move(session));
return NS_OK;
#else
// TODO: support Windows and Mac.
return NS_ERROR_NOT_IMPLEMENTED;
#endif
}

nsresult nsScreencastService::StopVideoRecording(int32_t sessionId) {
Expand Down

0 comments on commit 605257b

Please sign in to comment.