playsink: use queue to avoid lock in audiotee audio branches
authorThiago Santos <thiagoss@osg.samsung.com>
Tue, 26 May 2015 11:06:50 +0000 (08:06 -0300)
committerThiago Santos <thiagoss@osg.samsung.com>
Thu, 28 May 2015 07:56:16 +0000 (04:56 -0300)
commit12ac087807232df52392bfb21cdff7f89c393606
treede7e87ce8fd1236830ce1801bacafa7fceb95947
parentaf7a311c1cea7be4763de78def1a4ce327a3c1d2
playsink: use queue to avoid lock in audiotee audio branches

This part of pipeline is:

tee name=t ! visualizationbin ! streamsynchronizer name=s
t. ! s.

streamsynchronizer might block and it could starve the visualization
branch of the pipeline when it is enabled.

The visualization bin has queues internally but the other branch
that links the audiotee directly to the synchronizer is vulnerable
to block. Adding a queue between "t. ! s." fixes deadlocks.

https://bugzilla.gnome.org/show_bug.cgi?id=749676
gst/playback/gstplaysink.c