test: player: fix ABA problem
commite548bfb9797cb3b0a0a83b07fcad78933c3f84ac
authorThomas Guillem <thomas@gllm.fr>
Wed, 28 Nov 2018 14:53:43 +0000 (28 15:53 +0100)
committerThomas Guillem <thomas@gllm.fr>
Wed, 28 Nov 2018 15:45:23 +0000 (28 16:45 +0100)
tree61e377494e33cd00cca57bf40b078e5a61bc74c8
parentdabb85a3e3db50cb42545f889b82964d90157ac7
test: player: fix ABA problem

Don't wait for the last state, but for all forthcoming states. This fixes a
deadlock when the test was waiting for the STARTED event but the playback was
already terminated (so the last event was back to STOPPED).

A=STOPPED
B=STARTED (then PLAYING, STOPPING)
A=STOPPED
test/src/input/player.c