v4l2videodec: handle stop being called without flush
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Wed, 12 Mar 2014 16:11:16 +0000 (17:11 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 8 May 2014 19:56:35 +0000 (15:56 -0400)
commit7101c4341a84439e324a3db37bafeb732b379604
tree0670ac978c769912c7636069bb4a67be08c82f52
parentfb852669dee0e772d2d653dc28d7ed5d223daa20
v4l2videodec: handle stop being called without flush

Uppon certain downstream error, stop() is called without a flush(). This mean that
the streaming thread may still be running even though unlock has been called.
Now calling flush to reset the decoder state if we are processing.
sys/v4l2/gstv4l2videodec.c