diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-08-26 04:22:58 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-08-26 04:26:48 -0700 |
commit | 9cb6d62a0302d8e49b2225b97602379db7566b5e (patch) | |
tree | 0ae4fc4a8376c4f6e78dfebae0724c78e346f9a9 /src/main.c | |
parent | 4be65a911b6024dc924d1e7d016cab8c42179f71 (diff) | |
download | mpd-9cb6d62a0302d8e49b2225b97602379db7566b5e.tar.gz mpd-9cb6d62a0302d8e49b2225b97602379db7566b5e.tar.xz mpd-9cb6d62a0302d8e49b2225b97602379db7566b5e.zip |
Reimplement dynamic metadata handling
This has been tested for both playback of streams and
outputting to streams, and seems to work fine with minimal
locking. This reuses the sequence number infrastructure
in OutputBuffer for synchronizing metadata payloads; so
(IMNSHO) should be much more understandable than various
flags being set here and there..
It could still use some cleanup and much testing, but
synchronization issues should be minimal.
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 239296501..e897cacc1 100644 --- a/src/main.c +++ b/src/main.c @@ -44,6 +44,7 @@ #include "main_notify.h" #include "os_compat.h" #include "outputBuffer.h" +#include "metadata_pipe.h" #define SYSTEM_CONFIG_FILE_LOCATION "/etc/mpd.conf" #define USER_CONFIG_FILE_LOCATION "/.mpdconf" @@ -419,6 +420,7 @@ int main(int argc, char *argv[]) initReplayGainState(); initNormalization(); initInputStream(); + init_metadata_pipe(); daemonize(&options); |