diff options
author | waker <wakeroid@gmail.com> | 2011-04-16 21:01:37 +0200 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2011-04-16 21:01:37 +0200 |
commit | 1416dfbf622b443c309e299e0b1efd01646c8b37 (patch) | |
tree | 4794b0edfff95bce654f253b586c9aaa4e970e7f /playlist.c | |
parent | d804aaaad0df4a532cfe397b5190f833837257b9 (diff) |
get rid of some legacy events;
update playlist grouping on metadata changes
Diffstat (limited to 'playlist.c')
-rw-r--r-- | playlist.c | 14 |
1 files changed, 5 insertions, 9 deletions
@@ -504,20 +504,16 @@ plt_set_title (playlist_t *p, const char *title) { void plt_modified (playlist_t *plt) { pl_lock (); - time_t modtime = time (NULL); - if (modtime <= plt->modification_time) { - modtime = plt->modification_time+1; - } - plt->modification_time = modtime; + plt->modification_idx++; pl_unlock (); } -time_t -plt_get_modification_time (playlist_t *plt) { +int +plt_get_modification_idx (playlist_t *plt) { pl_lock (); - time_t res = plt->modification_time; + int idx = plt->modification_idx; pl_unlock (); - return res; + return idx; } void |