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>
Mon, 25 Jun 2012 18:21:28 +0000 (18:21 +0000)
commit2a006290cd561a2a2e7f5ab928e9edb47ba3cddf
tree2c5ca4662ad877484a8fa699430127f5e78e615f
parentab16851923f160cc982f94ec3f4f5b818da2cb99
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