audio: Fix a race with the audioringbuffer thread
authorFabrice Bellet <fabrice@bellet.info>
Mon, 11 Apr 2016 09:28:09 +0000 (11:28 +0200)
committerJan Schmidt <jan@centricular.com>
Mon, 11 Apr 2016 11:43:13 +0000 (21:43 +1000)
commitbfcd0737b7acd8fa5f055f49641fa3101bfb76de
tree27fab770bd0403f981078c504e9d318557783523
parentf05ea1e6a62e12d166b6a2f2d0e4b59018515d47
audio: Fix a race with the audioringbuffer thread

There is a small window of time where the audio ringbuffer thread
can access the parent thread variable, before it's initialized
by the parent thread. The patch replaces this variable use by
g_thread_self().

https://bugzilla.gnome.org/show_bug.cgi?id=764865
gst-libs/gst/audio/gstaudiosink.c
gst-libs/gst/audio/gstaudiosrc.c