dri2videosink: refcount dri2window
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Sun, 24 Jun 2012 13:58:38 +0000 (13:58 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Sun, 24 Jun 2012 14:01:47 +0000 (14:01 +0000)
commitbc5317c40c1a7ef090a50584f5ea14504a9efe1c
treeba0d9447e07721214fd5dd9bd13f51a32da7e07b
parent900924dc3166439c0a985731920d3d83acef6751
dri2videosink: refcount dri2window

I'm not convinced this was wrong in the first place, since the dri2window
was destroying the pool on destruction, and I'm told buffers cannot outlive
the pool, but refcounting makes this certain, though care has to be taken
to avoid ref cycles between dri2window and buffer pool.
sys/dri2/gstdri2bufferpool.c
sys/dri2/gstdri2util.c
sys/dri2/gstdri2util.h