Sure, but if you create a fence. Vdpau start waiting on that fence. Gui
delete the fence.. now Vdpau is waiting on a deleted fence.


On Sat, Jun 8, 2013 at 5:21 PM, Rainer Hochecker
<notifications@github.com>wrote:

> In xbmc/cores/VideoRenderers/LinuxRendererGL.cpp:
>
> > @@ -1600,6 +1603,16 @@ void CLinuxRendererGL::RenderVDPAU(int index, int field)
> >
> >    glBindTexture (m_textureTarget, 0);
> >    glDisable(m_textureTarget);
> > +
> > +  // set fence in order to determine when buffer is ready for reuse
> > +  // this is the case when the gl has finished processing
> > +  if(m_buffers[index].fence)
> > +  {
> > +    glDeleteSync(m_buffers[index].fence);
> > +    m_buffers[index].fence = NULL;
> > +  }
> > +  m_buffers[index].fence = glFenceSync(GL_SYNC_GPU_COMMANDS_COMPLETE, 0);
> > +
>
> If it's reused by renderer, the fence is deleted and a new fence is
> created. Look some lines above.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xbmc/xbmc/pull/2811/files#r4601800>
> .
>