[PATCH] Fix a race condition accessing the decode_chain field.
authorThomas Bluemel <tbluemel@control4.com>
Fri, 6 Nov 2015 14:21:14 +0000 (14:21 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 1 Dec 2015 17:36:31 +0000 (17:36 +0000)
commit2c62aad159694b0f4fb1d19297abc4c38650bcb9
tree06c9f0204c8f14de6f325fe50c00625798dc35c6
parent870c6df489238b0ad9ee988ca41e92babc9a8256
[PATCH] Fix a race condition accessing the decode_chain field.

Make sure that any access to the GstDecodeBin's decode_chain
field is protected using the EXPOSE_LOCK.  Also add a simple
reference counter to the GstDecodeChain structure so that when
the type_found signal fires it can hold onto the decode chain
even while the EXPOSE_LOCK is not held.  This should fix a
race condition if the type_found signal fires right in the
middle of a state change that messes with the same decode
chain.

https://bugzilla.gnome.org/show_bug.cgi?id=755260
gst/playback/gstdecodebin2.c