diff options
author | Matthew Waters <matthew@centricular.com> | 2020-10-07 21:13:09 +1100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-10-13 08:48:05 +0000 |
commit | 2f29a4cde6e6b0f3945071d04bf734bc08396106 (patch) | |
tree | 1f5ba00afca802155311819f17c6e8694b5dc878 /ext/wpe/WPEThreadedView.cpp | |
parent | da18a8d93d6d1ac7650835bd0855bf703429c4bd (diff) | |
download | gstreamer-plugins-bad-2f29a4cde6e6b0f3945071d04bf734bc08396106.tar.gz |
wpesrc: add some debug logging around WPEView creation/destruction
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1663>
Diffstat (limited to 'ext/wpe/WPEThreadedView.cpp')
-rw-r--r-- | ext/wpe/WPEThreadedView.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/wpe/WPEThreadedView.cpp b/ext/wpe/WPEThreadedView.cpp index a4e4d1c97..bd0ff6359 100644 --- a/ext/wpe/WPEThreadedView.cpp +++ b/ext/wpe/WPEThreadedView.cpp @@ -270,6 +270,8 @@ WPEView::WPEView(WebKitWebContext* web_context, GstWpeSrc* src, GstGLContext* co WPEView::~WPEView() { + GST_TRACE ("%p destroying", this); + g_mutex_clear(&threading.ready_mutex); g_cond_clear(&threading.ready_cond); @@ -285,10 +287,12 @@ WPEView::~WPEView() egl.committed = nullptr; } if (shm.pending) { + GST_TRACE ("%p freeing shm pending %" GST_PTR_FORMAT, this, shm.pending); gst_buffer_unref(shm.pending); shm.pending = nullptr; } if (shm.committed) { + GST_TRACE ("%p freeing shm commited %" GST_PTR_FORMAT, this, shm.committed); gst_buffer_unref(shm.committed); shm.committed = nullptr; } @@ -316,6 +320,7 @@ WPEView::~WPEView() } g_mutex_clear(&images_mutex); + GST_TRACE ("%p destroyed", this); } void WPEView::notifyLoadFinished() |