From ecafc1687513de35d080a9b4be14022e885a95e1 Mon Sep 17 00:00:00 2001 From: waker Date: Sat, 1 Oct 2011 10:33:47 +0200 Subject: added experimental support for metadata overrides. for example field "!NAME" will override field ":NAME", but will not be stored so after player restart, the field will be restored to original :NAME --- playlist.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'playlist.h') diff --git a/playlist.h b/playlist.h index 2f9a9d6a..a517930b 100644 --- a/playlist.h +++ b/playlist.h @@ -244,9 +244,13 @@ pl_append_meta (playItem_t *it, const char *key, const char *value); // must be used in explicit pl_lock/unlock block // that makes it possible to avoid copying metadata on every access +// pl_find_meta may return overriden value (where the key is prefixed with '!') const char * pl_find_meta (playItem_t *it, const char *key); +const char * +pl_find_meta_raw (playItem_t *it, const char *key); + int pl_find_meta_int (playItem_t *it, const char *key, int def); -- cgit v1.2.3