diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-08-27 22:47:43 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-08-27 22:47:43 -0700 |
commit | 407cefe8e1cead36129425a324629192e06f974d (patch) | |
tree | 384982ed3554b74713323fc9c6ceca73c3db1824 /src | |
parent | cc602b252fe83219c927d0c0a272e8e5cc9f0fc2 (diff) | |
download | mpd-407cefe8e1cead36129425a324629192e06f974d.tar.gz mpd-407cefe8e1cead36129425a324629192e06f974d.tar.xz mpd-407cefe8e1cead36129425a324629192e06f974d.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/decode.c | 3 |
1 files changed, 1 insertions, 2 deletions
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__); */ |