libvlc: player: fix racy tests
commitddee82e3b992f5e2a3f9c860db21988113ca379b
authorRomain Vimont <rom1v@videolabs.io>
Tue, 14 May 2019 10:40:05 +0000 (14 12:40 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 22 May 2019 20:03:43 +0000 (22 22:03 +0200)
tree11594bb0a51eaf2e971d3f946ec31ad706847fd8
parent24c260aabdc9dad5f7b807f4dca2ed2afcbcdae1
libvlc: player: fix racy tests

In order to wait for a specific state, libvlc player tests used live
loops to read the player state.

Listen to state changes instead.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
test/Makefile.am
test/libvlc/media_player.c