diff options
author | Max Kellermann <max@duempel.org> | 2011-10-05 22:24:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-10-06 00:35:54 +0200 |
commit | 8ea6c113b57c9a8b577e7048a31f46cc868c99b7 (patch) | |
tree | 8254d70db0c4beaf882a6fdae63593209efbcd89 /src/player_control.c | |
parent | 37f026a0a67b9014754e4ab1fcc22229e384fee3 (diff) | |
download | mpd-8ea6c113b57c9a8b577e7048a31f46cc868c99b7.tar.gz mpd-8ea6c113b57c9a8b577e7048a31f46cc868c99b7.tar.xz mpd-8ea6c113b57c9a8b577e7048a31f46cc868c99b7.zip |
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().
Diffstat (limited to '')
-rw-r--r-- | src/player_control.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/player_control.c b/src/player_control.c index a190bbd8b..e3e6b7739 100644 --- a/src/player_control.c +++ b/src/player_control.c @@ -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; |