]> git.sesse.net Git - nageru/blobdiff - nageru_cef_app.h
Support audio-only FFmpeg inputs. Somewhat wonky, though.
[nageru] / nageru_cef_app.h
index dff98441db7b2f4e4cc0447a6560694b2d906f54..7b8969bbc7224e863d13b191049f424390b0cae7 100644 (file)
@@ -33,8 +33,8 @@
 class CEFTaskAdapter : public CefTask
 {
 public:
-       CEFTaskAdapter(const std::function<void()>& func)
-               : func(func) {}
+       CEFTaskAdapter(const std::function<void()>&& func)
+               : func(std::move(func)) {}
        void Execute() override { func(); }
 
 private:
@@ -76,9 +76,7 @@ public:
                return this;
        }
 
-       void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line);
-
-       void OnBrowserDestroyed(CefRefPtr<CefBrowser> browser) override;
+       void OnBeforeCommandLineProcessing(const CefString& process_type, CefRefPtr<CefCommandLine> command_line) override;
 
 private:
        void cef_thread_func();
@@ -88,8 +86,6 @@ private:
        int cef_thread_refcount = 0;  // Under <cef_mutex>.
        bool cef_initialized = false;  // Under <cef_mutex>.
        std::condition_variable cef_initialized_cond;
-       std::unordered_set<CefBrowser *> pending_browsers;  // Under <cef_mutex>.
-       std::condition_variable browser_closed_cond;
 
        IMPLEMENT_REFCOUNTING(NageruCefApp);
 };