v4l2videodec: Check stop in flush() to avoid race condition.
authorKevin Song <kevinbing.song@gmail.com>
Fri, 11 Oct 2019 12:27:12 +0000 (12:27 +0000)
committerNicolas Dufresne <nicolas@ndufresne.ca>
Fri, 11 Oct 2019 12:27:12 +0000 (12:27 +0000)
commit9d42b2dd5dea81d0b8f46cb363be954aaaa34d4c
treea2ec8548e053b12e00eca6786e5d83ea18ceac69
parent1b752c0fa89c44c38c708680b253a7456845f715
v4l2videodec: Check stop in flush() to avoid race condition.

Backward playback will drain and flush every frame. Stop playback
when backward playback have race condition between exit thread and
streaming thread flush. Add one check to avoid it.

Fixes #639
sys/v4l2/gstv4l2videodec.c