From 64b0ba6da7975fdde774f188b1647ab6c9024cfa Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 5 Oct 2011 22:37:59 +0200 Subject: decoder_control: add attributes start_ms, end_ms Don't read song.start_ms and song.end_ms, let the player thread manage this logic instead. --- src/decoder_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder_thread.c') diff --git a/src/decoder_thread.c b/src/decoder_thread.c index ce849df4..201cd5ac 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -369,7 +369,7 @@ decoder_run_song(struct decoder_control *dc, { struct decoder decoder = { .dc = dc, - .initial_seek_pending = song->start_ms > 0, + .initial_seek_pending = dc->start_ms > 0, .initial_seek_running = false, }; int ret; -- cgit v1.2.3