Commit a088d9f8 authored by Max Kellermann's avatar Max Kellermann

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().
parent 38a9ad01
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment