aboutsummaryrefslogtreecommitdiffstats
path: root/src/metadata_pipe.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2008-09-02Add missing function prototypesEric Wong1-4/+0
2008-09-02tag: renamed functions, no CamelCaseMax Kellermann1-10/+10
2008-09-02tag: renamed MpdTag and MpdTagItem to struct mpd_tag, struct tag_itemMax Kellermann1-7/+7
Getting rid of CamelCase; not having typedefs also allows us to forward-declare the structures.
2008-08-27metadata_pipe: free current_tag in metadata_pipe_clearEric Wong1-0/+5
This avoids writing the metadata of a static song into the URL of song; leading to confusing looking playlists.
2008-08-27metadata_pipe: inline clear_pipe_unlocked() functionEric Wong1-12/+9
I considered calling it from metadata_pipe_recv() in the past, but it's not necessary, so just inline it again to simplify things.
2008-08-27metadata_pipe: remove highly unlikely memory leakEric Wong1-0/+1
When we send metadata, there's a remote chance that our pipe is full and our tag will be silently discarded. If that happens, the readers will never have a chance to free the tag, so ensure we free it before returning to the caller.
2008-08-26Reimplement dynamic metadata handlingEric Wong1-0/+155
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.