oggmux: fix deadlock when not pulling a buffer from collectpads
authorVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Wed, 17 Dec 2014 12:17:09 +0000 (12:17 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Fri, 3 Apr 2015 14:52:54 +0000 (15:52 +0100)
commitb590a843f4b2d452ad304acdcb3265a97181fe7b
treef1ee232daef9eb564273460e9fff3d7ebe328243
parent77dc09c3a9a5e5e371e189f39b5557db440a8dc9
oggmux: fix deadlock when not pulling a buffer from collectpads

oggmux keeps a cached buffer per pad, and pulls buffers from
collectpads to this cached buffer for all pads before processing
the best pad. In some cases, the move from collectpads buffer
to cached buffer is delayed till next call. However, when there
is only one pad, this can't be delayed till next call as there
will be a deadlock since collectpads has no other pad to push to.

https://bugzilla.gnome.org/show_bug.cgi?id=740565
ext/ogg/gstoggmux.c