wpesrc: add some debug logging around WPEView creation/destruction
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1663>
This commit is contained in:
parent
da18a8d93d
commit
2f29a4cde6
@ -270,6 +270,8 @@ WPEView::WPEView(WebKitWebContext* web_context, GstWpeSrc* src, GstGLContext* co
|
|||||||
|
|
||||||
WPEView::~WPEView()
|
WPEView::~WPEView()
|
||||||
{
|
{
|
||||||
|
GST_TRACE ("%p destroying", this);
|
||||||
|
|
||||||
g_mutex_clear(&threading.ready_mutex);
|
g_mutex_clear(&threading.ready_mutex);
|
||||||
g_cond_clear(&threading.ready_cond);
|
g_cond_clear(&threading.ready_cond);
|
||||||
|
|
||||||
@ -285,10 +287,12 @@ WPEView::~WPEView()
|
|||||||
egl.committed = nullptr;
|
egl.committed = nullptr;
|
||||||
}
|
}
|
||||||
if (shm.pending) {
|
if (shm.pending) {
|
||||||
|
GST_TRACE ("%p freeing shm pending %" GST_PTR_FORMAT, this, shm.pending);
|
||||||
gst_buffer_unref(shm.pending);
|
gst_buffer_unref(shm.pending);
|
||||||
shm.pending = nullptr;
|
shm.pending = nullptr;
|
||||||
}
|
}
|
||||||
if (shm.committed) {
|
if (shm.committed) {
|
||||||
|
GST_TRACE ("%p freeing shm commited %" GST_PTR_FORMAT, this, shm.committed);
|
||||||
gst_buffer_unref(shm.committed);
|
gst_buffer_unref(shm.committed);
|
||||||
shm.committed = nullptr;
|
shm.committed = nullptr;
|
||||||
}
|
}
|
||||||
@ -316,6 +320,7 @@ WPEView::~WPEView()
|
|||||||
}
|
}
|
||||||
|
|
||||||
g_mutex_clear(&images_mutex);
|
g_mutex_clear(&images_mutex);
|
||||||
|
GST_TRACE ("%p destroyed", this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WPEView::notifyLoadFinished()
|
void WPEView::notifyLoadFinished()
|
||||||
|
@ -252,7 +252,7 @@ gst_wpe_src_start (GstWpeSrc * src)
|
|||||||
display = base_src->display;
|
display = base_src->display;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (src, "Will fill GLMemories: %d\n", src->gl_enabled);
|
GST_DEBUG_OBJECT (src, "Will %sfill GLMemories", src->gl_enabled ? "" : "NOT ");
|
||||||
|
|
||||||
auto & thread = WPEContextThread::singleton ();
|
auto & thread = WPEContextThread::singleton ();
|
||||||
|
|
||||||
@ -261,6 +261,7 @@ gst_wpe_src_start (GstWpeSrc * src)
|
|||||||
GST_VIDEO_INFO_WIDTH (&base_src->out_info),
|
GST_VIDEO_INFO_WIDTH (&base_src->out_info),
|
||||||
GST_VIDEO_INFO_HEIGHT (&base_src->out_info));
|
GST_VIDEO_INFO_HEIGHT (&base_src->out_info));
|
||||||
created_view = TRUE;
|
created_view = TRUE;
|
||||||
|
GST_DEBUG_OBJECT (src, "created view %p", src->view);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!src->view) {
|
if (!src->view) {
|
||||||
@ -317,6 +318,7 @@ static void
|
|||||||
gst_wpe_src_stop_unlocked (GstWpeSrc * src)
|
gst_wpe_src_stop_unlocked (GstWpeSrc * src)
|
||||||
{
|
{
|
||||||
if (src->view) {
|
if (src->view) {
|
||||||
|
GST_DEBUG_OBJECT (src, "deleting view %p", src->view);
|
||||||
delete src->view;
|
delete src->view;
|
||||||
src->view = NULL;
|
src->view = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user