From 438f3547ccb6967ec16e7e1110ae424ff5afc234 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 6 May 2009 18:46:52 +0200 Subject: 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. --- src/player_control.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/player_control.c b/src/player_control.c index 2754c3432..a49fcecc9 100644 --- a/src/player_control.c +++ b/src/player_control.c @@ -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; } -- cgit v1.2.3