summaryrefslogtreecommitdiff
path: root/playlist.c
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2011-03-23 21:21:45 +0100
committerGravatar waker <wakeroid@gmail.com>2011-03-23 21:21:45 +0100
commit11e63b53b8c91da89592c373bb32fc2b656c6024 (patch)
tree28c869d99bb8337a3b3415f4c4ec18ffc71d956b /playlist.c
parent4a0f3f780b88e3db50acc1fb4750657a79342eb7 (diff)
don't auto-fill track title with filename
Diffstat (limited to 'playlist.c')
-rw-r--r--playlist.c4
1 files changed, 4 insertions, 0 deletions
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));