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:
parent
38a9ad011a
commit
a088d9f851
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue