glsyncmeta: make context to wait and set sync explicit

otherwise we may wait on a sync object in same context by accident
This commit is contained in:
Matthew Waters 2015-03-14 16:25:29 +00:00
parent 4c72910825
commit 875e5c0320

View file

@ -631,7 +631,7 @@ gst_gl_mixer_process_textures (GstGLMixer * mix, GstBuffer * outbuf)
sync_meta = gst_buffer_get_gl_sync_meta (vaggpad->buffer);
if (sync_meta)
gst_gl_sync_meta_wait (sync_meta);
gst_gl_sync_meta_wait (sync_meta, GST_GL_BASE_MIXER (mix)->context);
if (gst_video_frame_map (&gl_frame, &gl_info, vaggpad->buffer,
GST_MAP_READ | GST_MAP_GL)) {