player_control: removed pc.error check from pc_seek()
The only pc_seek() caller clears the error, rendering the check useless. Even if the previous PLAY command resulted in a player error, this check is not very useful.
This commit is contained in:
parent
3083df5a5f
commit
438f3547cc
@ -229,13 +229,10 @@ pc_seek(struct song *song, float seek_time)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
pc.next_song = song;
|
pc.next_song = song;
|
||||||
|
pc.seek_where = seek_time;
|
||||||
|
player_command(PLAYER_COMMAND_SEEK);
|
||||||
|
|
||||||
if (pc.error == PLAYER_ERROR_NOERROR) {
|
idle_add(IDLE_PLAYER);
|
||||||
pc.seek_where = seek_time;
|
|
||||||
player_command(PLAYER_COMMAND_SEEK);
|
|
||||||
|
|
||||||
idle_add(IDLE_PLAYER);
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user