nlecomposition: Fix race condition in seek handling causing deadlocks
authorSebastian Dröge <sebastian@centricular.com>
Tue, 31 May 2016 09:09:44 +0000 (12:09 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 31 May 2016 14:30:25 +0000 (17:30 +0300)
commit2ef72b72767d10512d66b3882a48626ae0497190
treeaac9456c0bfa4800b877c5de4984194bbb228a84
parent2aac7356c85fb81df12f91fbaa418f9718e06e7c
nlecomposition: Fix race condition in seek handling causing deadlocks

We might receive another seek from the application while the action task is
handling a previous seek (and thus setting seeking_itself to TRUE). To prevent
this seek to go through directly instead of being added as an action, also
check if the seek event was received from our action task thread or some other
thread.

https://bugzilla.gnome.org/show_bug.cgi?id=767053
plugins/nle/nlecomposition.c