GNOME Bugzilla – Bug 593955
rtpjitterbuffer: clock_rate can change between its check and its use
Last modified: 2009-09-03 17:26:24 UTC
Created attachment 142347 [details] [review] Lock the clock rate variable The priv->clock_rate variable could become -1 between when its checked to not be -1 and when its used, causing an assertion. Attached patch fixes that by taking the mutex earlier in the chain() function and locking other changes to the clock_rate variable. Also in _loop(), it uses the clock_rate() without checking if its not -1, but I guess thats for rtsp, so it doesn't matter.
commit f542f710cfa2bc893417f469b127e467744adbf7 Author: Olivier Crête <olivier.crete@collabora.co.uk> Date: Wed Sep 2 15:21:02 2009 -0400 rtpjitterbuffer: Lock clock_rate variable The priv->clock_rate variable could become -1 between when its checked to not be -1 and when its used, causing an assertion. Fixed by taking the mutex earlier in the chain() function. Fixes #593955