omxvideodec: always signal drain cond when stopping streaming loop
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 16 May 2018 15:06:29 +0000 (17:06 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 8 Jun 2018 07:47:32 +0000 (09:47 +0200)
commitfd108f427882c4a6af03755394f7dad56ee695f0
tree6f05267749a274d4f48ee5006d6359eedafb78ab
parent798bbc9acf97c8c480557294e3ea058a4d000f21
omxvideodec: always signal drain cond when stopping streaming loop

If for some reason something goes wrong and we stop the streaming loop
we may end up with other threads still waiting on the drain cond.
No more buffers will be produced by the component so they were waiting
forever.

Fix this by always signalling this cond when stopping the streaming
loop.

https://bugzilla.gnome.org/show_bug.cgi?id=796207
omx/gstomxvideodec.c
omx/gstomxvideodec.h