From a088d9f851dc5696dff409b2f9999c30c0d51bb0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2009 16:36:30 +0100 Subject: player_thread: check for decoder failure before seeking The function player_seek_decoder() starts the decoder, but does not check the return value of player_wait_for_decoder(). --- src/player_thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/player_thread.c') diff --git a/src/player_thread.c b/src/player_thread.c index 391e6f4d4..61095cc53 100644 --- a/src/player_thread.c +++ b/src/player_thread.c @@ -133,7 +133,10 @@ static bool player_seek_decoder(struct player *player) player->next_song_chunk = -1; music_pipe_clear(); dc_start_async(pc.next_song); - player_wait_for_decoder(player); + + ret = player_wait_for_decoder(player); + if (!ret) + return false; } where = pc.seek_where; -- cgit v1.2.3