projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gitweb.css: Improve readability.
[paraslash.git]
/
playlist.c
diff --git
a/playlist.c
b/playlist.c
index
5012d4c
..
826280b
100644
(file)
--- a/
playlist.c
+++ b/
playlist.c
@@
-223,12
+223,24
@@
static int handle_audio_file_event(enum afs_events event, void *data)
return score_add(row, 0); /* play it immediately */
}
return score_add(row, 0); /* play it immediately */
}
+/**
+ * Handle afs events relevant to playlists.
+ *
+ * \param event The event type.
+ * \param pb Unused.
+ * \param data Depends on the event type.
+ *
+ * \return Standard.
+ */
int playlists_event_handler(enum afs_events event,
__a_unused struct para_buffer *pb, void *data)
{
int ret;
int playlists_event_handler(enum afs_events event,
__a_unused struct para_buffer *pb, void *data)
{
int ret;
+ struct afsi_change_event_data *aced = data;
switch(event) {
switch(event) {
+ case AFSI_CHANGE:
+ return playlist_update_audio_file(aced->aft_row);
case AUDIO_FILE_RENAME:
case AUDIO_FILE_ADD:
return handle_audio_file_event(event, data);
case AUDIO_FILE_RENAME:
case AUDIO_FILE_ADD:
return handle_audio_file_event(event, data);