wpesrc: only create webview if not already created
authorMatthew Waters <matthew@centricular.com>
Tue, 6 Oct 2020 11:19:21 +0000 (22:19 +1100)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 13 Oct 2020 08:48:05 +0000 (08:48 +0000)
commit356fee4dd6303794adf90c7ca14269ef52a0f072
tree260e28b910561a8ad0df478617dbb68aa3180c4f
parentb84c8821de6bccd242d524c28d68503571382706
wpesrc: only create webview if not already created

e.g. _decide_allocation() can be called multiple times throughout the
element's lifetime and we only want to create the view once rather than
overwriting.

Fixes a leak of the WPEView under certain circumstances.

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