aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-05-06 18:46:52 +0200
committerMax Kellermann <max@duempel.org>2009-05-06 18:46:52 +0200
commit438f3547ccb6967ec16e7e1110ae424ff5afc234 (patch)
tree8e825e4c5d888138fa10f9a363ad45b8de38a48f
parent3083df5a5f0dc423d4b283917737b99e308081e9 (diff)
downloadmpd-438f3547ccb6967ec16e7e1110ae424ff5afc234.tar.gz
mpd-438f3547ccb6967ec16e7e1110ae424ff5afc234.tar.xz
mpd-438f3547ccb6967ec16e7e1110ae424ff5afc234.zip
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.
Diffstat (limited to '')
-rw-r--r--src/player_control.c9
1 files changed, 3 insertions, 6 deletions
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;
}