From 8ea6c113b57c9a8b577e7048a31f46cc868c99b7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Oct 2011 22:24:53 +0200 Subject: 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(). --- src/player_control.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/player_control.c') 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; -- cgit v1.2.3