ducatibufferpool: fix race in gst_ducati_bufferpool_destroy
authorAlessandro Decina <alessandro.decina@collabora.com>
Wed, 11 Apr 2012 12:08:06 +0000 (14:08 +0200)
committerAlessandro Decina <alessandro.decina@collabora.com>
Wed, 11 Apr 2012 12:08:06 +0000 (14:08 +0200)
commit817266d9d65863f8a15497d021bd35b84a17bf33
tree7a1090b6c2a13ce568e10334552d166ad1dfc4cd
parent19f5517209f2c0f7f367bd7969d4d6bf4bd249f8
ducatibufferpool: fix race in gst_ducati_bufferpool_destroy

Pop items from ->freelist with the pool lock taken to avoid races with other
threads unreffing outstanding buffers.
src/gstducatibufferpool.c