changeset 1733:e60cfd9e3d48

- only add subsongs in playlist if the option is active in sid plugin
author Giacomo Lozito <james@develia.org>
date Wed, 19 Sep 2007 01:03:24 +0200
parents 4bdb8621853e
children 5e47a0c1b969 68312d3b39a8
files src/sid/xmms-sid.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sid/xmms-sid.c	Tue Sep 18 19:13:12 2007 +0200
+++ b/src/sid/xmms-sid.c	Wed Sep 19 01:03:24 2007 +0200
@@ -633,7 +633,9 @@
 	tuple_associate_string(pResult, FIELD_ARTIST, NULL, pInfo->sidComposer);
 	tuple_associate_string(pResult, FIELD_GENRE, NULL, "SID-tune");
 	tuple_associate_string(pResult, FIELD_COPYRIGHT, NULL, pInfo->sidCopyright);
-	tuple_associate_int(pResult, FIELD_SUBSONG_NUM, NULL, pInfo->nsubTunes);
+
+	if (xs_cfg.subAutoEnable)
+		tuple_associate_int(pResult, FIELD_SUBSONG_NUM, NULL, pInfo->nsubTunes);
 
 	tuple_associate_int(pResult, -1, "subtunes", pInfo->nsubTunes);
 	tuple_associate_string(pResult, -1, "sid-format", pInfo->sidFormat);