From 11e63b53b8c91da89592c373bb32fc2b656c6024 Mon Sep 17 00:00:00 2001 From: waker Date: Wed, 23 Mar 2011 21:21:45 +0100 Subject: don't auto-fill track title with filename --- playlist.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/playlist.c b/playlist.c index f5319021..2f53c368 100644 --- a/playlist.c +++ b/playlist.c @@ -1905,6 +1905,9 @@ pl_add_meta (playItem_t *it, const char *key, const char *value) { // add char str[256]; if (!value || !*value) { + UNLOCK; + return; +#if 0 if (!strcasecmp (key, "title")) { // cut filename without path and extension const char *pext = pl_find_meta (it, ":URI") + strlen (pl_find_meta (it, ":URI")) - 1; @@ -1926,6 +1929,7 @@ pl_add_meta (playItem_t *it, const char *key, const char *value) { UNLOCK; return; } +#endif } m = malloc (sizeof (DB_metaInfo_t)); memset (m, 0, sizeof (DB_metaInfo_t)); -- cgit v1.2.3