Commit 8ea6c113 authored by Max Kellermann's avatar Max Kellermann

player_control: auto-start playback when seeking is requested

Now that the player thread can handle SEEK commands while not (yet) playing, we can remove the "pc.state" check from pc_seek().
parent 37f026a0
......@@ -13,6 +13,7 @@ ver 0.16.5 (2010/??/??)
* player:
- make seeking to CUE track more reliable
- the "seek" command works when MPD is stopped
- restore song position from state file (bug fix)
* WIN32: close sockets properly
* install systemd service file if systemd is available
......
......@@ -309,9 +309,6 @@ pc_seek(struct song *song, float seek_time)
{
assert(song != NULL);
if (pc.state == PLAYER_STATE_STOP)
return false;
player_lock();
pc.next_song = song;
pc.seek_where = seek_time;
......
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