From 407cefe8e1cead36129425a324629192e06f974d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 27 Aug 2008 22:47:43 -0700 Subject: decode: clear dc.seek_where if we're not seeking This way if we previously had a seek error, starting to play a new song will immediately update the status metadata. --- src/decode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/decode.c') diff --git a/src/decode.c b/src/decode.c index 150a0a58b..90ec5bd37 100644 --- a/src/decode.c +++ b/src/decode.c @@ -41,8 +41,7 @@ void dc_trigger_action(enum dc_action action, float seek_where) /* DEBUG(__FILE__ ":%s %d\n", __func__,__LINE__); */ cond_enter(&dc_action_cond); assert(dc.action == DC_ACTION_NONE); - if (action == DC_ACTION_SEEK) - dc.seek_where = seek_where; /* usually 0 */ + dc.seek_where = (action == DC_ACTION_SEEK) ? seek_where : 0; dc.action = action; do { /* DEBUG(__FILE__ ":%s %d\n", __func__,__LINE__); */ -- cgit v1.2.3