mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
glsyncmeta: Add some debug output
This commit is contained in:
parent
fd7348d064
commit
7a288b0189
1 changed files with 9 additions and 4 deletions
|
@ -64,8 +64,10 @@ _set_sync_point (GstGLContext * context, GstGLSyncMeta * sync_meta)
|
|||
const GstGLFuncs *gl = context->gl_vtable;
|
||||
|
||||
if (gl->FenceSync) {
|
||||
if (sync_meta->glsync)
|
||||
if (sync_meta->glsync) {
|
||||
GST_LOG ("deleting sync object %p", sync_meta->glsync);
|
||||
gl->DeleteSync (sync_meta->glsync);
|
||||
}
|
||||
sync_meta->glsync = gl->FenceSync (GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
|
||||
GST_LOG ("setting sync object %p", sync_meta->glsync);
|
||||
}
|
||||
|
@ -123,7 +125,8 @@ _gst_gl_sync_meta_transform (GstBuffer * dest, GstMeta * meta,
|
|||
if (!dmeta)
|
||||
return FALSE;
|
||||
|
||||
GST_DEBUG ("copy gl sync metadata");
|
||||
GST_LOG ("copy sync object %p from meta %p to %p", smeta->glsync,
|
||||
smeta, dmeta);
|
||||
|
||||
dmeta->glsync = smeta->glsync;
|
||||
}
|
||||
|
@ -136,9 +139,11 @@ _free_gl_sync_meta (GstGLContext * context, GstGLSyncMeta * sync_meta)
|
|||
{
|
||||
const GstGLFuncs *gl = context->gl_vtable;
|
||||
|
||||
if (sync_meta->glsync)
|
||||
if (sync_meta->glsync) {
|
||||
GST_LOG ("deleting sync object %p", sync_meta->glsync);
|
||||
gl->DeleteSync (sync_meta->glsync);
|
||||
sync_meta->glsync = NULL;
|
||||
sync_meta->glsync = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue