GNOME Bugzilla – Bug 635231
baseaudiosink: protect against ringbuffer disappearing while in a query
Last modified: 2010-12-29 11:30:14 UTC
Observed a case where the sink went to null-state during the query, hence the ringbuffer-pointer was NULL, causing a crash. Moving the ringbuffer-check code until after the query, and hold the lock during the check and while using the spec-values. It should not matter to the query wether the ringbuffer is present or not, and it actually gets a time bit more time to get the ringbuffer set up in this case!
Created attachment 175243 [details] [review] patch
Comment on attachment 175243 [details] [review] patch >From: unknown <havard.graff@.eu.tandberg.int> Something you might want to fix ;-)
Patch looks good to me but you should really fix your mail address and name ;)
commit 60ff7c0eb475f80e8a0e767f432a55485aba0d75 Author: Havard Graff <havard.graff@tandberg.com> Date: Thu Nov 25 17:01:04 2010 +0100 baseaudiosink: protect against ringbuffer disappearing while in a query Observed a case where the sink went to null-state during the query, hence the ringbuffer-pointer was NULL, causing a crash. Moving the ringbuffer-check code until after the query, and hold the lock during the check and while using the spec-values. It should not matter to the query wether the ringbuffer is present or not, and it actually gets a time bit more time to get the ringbuffer set up in this case! Fixes #635231