diff --git a/src/format_mp3.c b/src/format_mp3.c index 11ba7950..53afbc36 100644 --- a/src/format_mp3.c +++ b/src/format_mp3.c @@ -32,6 +32,7 @@ #include "global.h" #include "refbuf.h" +#include "event.h" #include "source.h" #include "client.h" #include "connection.h" @@ -189,6 +190,7 @@ static void filter_shoutcast_metadata (source_t *source, char *metadata, unsigne { memcpy (p, metadata+13, len); logging_playlist (source->mount, p, source->listeners); + event_emit_va("format-metadata-changed", EVENT_EXTRA_SOURCE, source, EVENT_EXTRA_LIST_END); stats_event_conv (source->mount, "title", p, source->format->charset); stats_event_conv (source->mount, "display-title", p, source->format->charset); if (update_vc) diff --git a/src/format_ogg.c b/src/format_ogg.c index 03d294da..b92bf5cf 100644 --- a/src/format_ogg.c +++ b/src/format_ogg.c @@ -33,6 +33,7 @@ #include "stats.h" #include "playlist.h" +#include "event.h" #include "format.h" #include "format_ogg.h" #include "format_vorbis.h" @@ -363,6 +364,7 @@ static refbuf_t *complete_buffer (source_t *source, refbuf_t *refbuf) if (ogg_info->log_metadata) { update_comments (source); + event_emit_va("format-metadata-changed", EVENT_EXTRA_SOURCE, source, EVENT_EXTRA_LIST_END); ogg_info->log_metadata = 0; } /* listeners can start anywhere unless the codecs themselves are