Commit 438f3547 authored by Max Kellermann's avatar Max Kellermann

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.
parent 3083df5a
...@@ -229,13 +229,10 @@ pc_seek(struct song *song, float seek_time) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment