chiark / gitweb /
Set last_playing to NULL when we don't have up to date information
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 31 Jan 2009 12:33:59 +0000 (12:33 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 31 Jan 2009 12:33:59 +0000 (12:33 +0000)
commit3900d6d655918df285b875887aa304666db0f63e
tree1aeb0de72c1bd03de2fc27abd2862480923d54b7
parent8484d1bf363e3f2f45e28939aca71f5676e57c81
Set last_playing to NULL when we don't have up to date information
about the playing track (including, importantly, just after pausing).
column_length() returns NULL in this case, and ql_update_row() leaves
cells that have a NULL value along.

The effect is that the played so far indicator is left as it is until
we're sure what the right value is.  Usually in fact it will already
be right, so we don't even lie; when it isn't, at least it jumps
around less before reaching the right value.

http://code.google.com/p/disorder/issues/detail?id=26
disobedience/queue-generic.c
disobedience/queue.c