wpe: Move webview load waiting to WPEView
authorPhilippe Normand <philn@igalia.com>
Thu, 10 Sep 2020 13:39:58 +0000 (14:39 +0100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 21 Sep 2020 16:39:57 +0000 (16:39 +0000)
commit8ef30a9ce59500cb1b1c644905fab05da01c221a
tree7960d773a1cadc3501a5f0bdf2dcea5c8ac774a3
parent248d2bb79585c87cc00c598b5ece9ba4c297d57d
wpe: Move webview load waiting to WPEView

As waiting for the load to be finished is specific to the WebView, it should be
done from our WPEView, not from the WPEContextThread. This fixes issues where
multiple wpesrc elements are created in sequence. Without this patch the first
view might receive erroneous buffer notifications.

Fixes #1386

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1568>
ext/wpe/WPEThreadedView.cpp
ext/wpe/WPEThreadedView.h