composition: Avoid deadlock when setting current bin to ready (on commit or seek)
authorThibault Saunier <tsaunier@gnome.org>
Sun, 13 Jul 2014 09:51:51 +0000 (11:51 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 31 Oct 2014 10:58:10 +0000 (11:58 +0100)
commit7d9ed1f185335c1d4080c1311b3d47083a177982
treeda0de0188299d92b597a70945cdfeeea4f60bbee
parent92ff7ffa6c6250b2e354da154a2a783b542fab8c
composition: Avoid deadlock when setting current bin to ready (on commit or seek)

We need to make sure that between the time we send flush_start/stop and
the time we actually set the bin to READY, no buffer got prerolled again
as it would lead to a deadlock trying to set the bin to READY (while
deactivating the pads, it needs the streaming lock, which would be
taken in that case)

Co-Authored by: Mathieu Duponchelle <mathieu.duponchelle@opencreed.com>
gnl/gnlcomposition.c