element: Add note about racyness to gst_element_set_locked_state()
authorSebastian Dröge <sebastian@centricular.com>
Mon, 7 Jan 2019 12:08:25 +0000 (14:08 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 9 Jan 2019 14:12:26 +0000 (16:12 +0200)
commitcacc834d8f97533c268232e60e18985dda37abea
tree67571e1de6653dd532f9793f8fe81e0d96a720cd
parent7f70d7a9450b321585fbfd1eb977548d4264b2a6
element: Add note about racyness to gst_element_set_locked_state()

This is racy if the state lock of the parent bin is not taken. The
parent bin might've just checked the flag in another thread and as the
next step proceed to change the child element's state.
gst/gstelement.c