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().
This commit is contained in:
Max Kellermann 2009-01-21 16:36:30 +01:00
parent 38a9ad011a
commit a088d9f851
1 changed files with 4 additions and 1 deletions

View File

@ -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;