WPEView::~WPEView()
{
+ GST_TRACE ("%p destroying", this);
+
g_mutex_clear(&threading.ready_mutex);
g_cond_clear(&threading.ready_cond);
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;
}
}
g_mutex_clear(&images_mutex);
+ GST_TRACE ("%p destroyed", this);
}
void WPEView::notifyLoadFinished()
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 ();
GST_VIDEO_INFO_WIDTH (&base_src->out_info),
GST_VIDEO_INFO_HEIGHT (&base_src->out_info));
created_view = TRUE;
+ GST_DEBUG_OBJECT (src, "created view %p", src->view);
}
if (!src->view) {
gst_wpe_src_stop_unlocked (GstWpeSrc * src)
{
if (src->view) {
+ GST_DEBUG_OBJECT (src, "deleting view %p", src->view);
delete src->view;
src->view = NULL;
}