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:
Max Kellermann 2009-05-06 18:46:52 +02:00
parent 3083df5a5f
commit 438f3547cc

View File

@ -229,13 +229,10 @@ pc_seek(struct song *song, float seek_time)
return false;
pc.next_song = song;
pc.seek_where = seek_time;
player_command(PLAYER_COMMAND_SEEK);
if (pc.error == PLAYER_ERROR_NOERROR) {
pc.seek_where = seek_time;
player_command(PLAYER_COMMAND_SEEK);
idle_add(IDLE_PLAYER);
}
idle_add(IDLE_PLAYER);
return true;
}