xvimageink: protect buffer_alloc from shutdown
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Feb 2009 12:16:32 +0000 (13:16 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Wed, 25 Feb 2009 12:16:32 +0000 (13:16 +0100)
commit81b7470ab871e387a845031ddce33a17301f1a42
tree2e70d954e049f5b8b612f6cf7d5457f0c2df5382
parentf5a3387bdbc2214b4bd5baba81527e61f370712b
xvimageink: protect buffer_alloc from shutdown

Use the pool_lock in the buffer_alloc function to detect shutdown. Avoids
crashes when the sink is shutdown.
sys/xvimage/xvimagesink.c
sys/xvimage/xvimagesink.h