glsyncmeta: Add some debug output

This commit is contained in:
Jan Schmidt 2015-06-02 23:59:50 +10:00 committed by Tim-Philipp Müller
parent fd7348d064
commit 7a288b0189

View file

@ -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