bazukas / obs-linuxbrowser

OBS Linux Browser Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compile errors due to change in CEF API

NexAdn opened this issue · comments

Originally opened in #94.

Apparently, CEF changed the API somewhere between build 1864 and build 1085.
A few adjustments must be make to make linuxbrowser work with newer CEF versions again.

Return types must be void instead of bool:

virtual bool GetViewRect(CefRefPtr<CefBrowser> browser, CefRect& rect) OVERRIDE;

bool BrowserClient::GetViewRect(CefRefPtr<CefBrowser> browser, CefRect& rect)
{
pthread_mutex_lock(&data->mutex);
rect.Set(0, 0, data->width, data->height);
pthread_mutex_unlock(&data->mutex);
return true;
}