summaryrefslogtreecommitdiff
path: root/libpiano/src/http.h
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-03-16 15:14:51 +0100
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-03-16 15:14:51 +0100
commit13bd3c8253a5c2998ce85a084a854f7a3d0ba7f5 (patch)
treec25b8b8e5042de6dc1dae102a5067c3732468fea /libpiano/src/http.h
parentc7690562ee0963e6cd3af973e34c388347e24190 (diff)
downloadpianobar-windows-13bd3c8253a5c2998ce85a084a854f7a3d0ba7f5.tar.gz
pianobar-windows-13bd3c8253a5c2998ce85a084a854f7a3d0ba7f5.tar.bz2
pianobar-windows-13bd3c8253a5c2998ce85a084a854f7a3d0ba7f5.zip
Fix player race condition
Pressing any key before the player thread set mode to PLAYER_INITIALIZED lead to a song skip and spawning of another player thread. The two player threads were operating on the same variables/memory area, resulting in a crash. Adding a new player state (PLAYER_STARTING) and setting it _before_ invoking pthread_start should resolve this, 'cause the "if PLAYER_FREED-branch" is not taken any more, ergo no second player thread is started.
Diffstat (limited to 'libpiano/src/http.h')
0 files changed, 0 insertions, 0 deletions