changeset 1662:6e187f6abd4d

Disable subtunes support, because the way it is currently "supposed" to be done is broken and does not work.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 07 Sep 2007 22:44:47 +0300
parents 927d341eecb8
children 98c893ce663f b0089144466d
files src/sid/xmms-sid.c
diffstat 1 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/sid/xmms-sid.c	Fri Sep 07 21:06:56 2007 +0300
+++ b/src/sid/xmms-sid.c	Fri Sep 07 22:44:47 2007 +0300
@@ -266,14 +266,12 @@
 	if (pcFilename == NULL)
 		return 0;
 
-//	XS_MUTEX_LOCK(xs_status);
 	if ((f = xs_fopen(pcFilename, "rb")) != NULL) {
 		if (xs_status.sidPlayer->plrProbe(f))
 			result = 1;
 		xs_fclose(f);
 	}
 
-//	XS_MUTEX_UNLOCK(xs_status);
 	return result;
 }
 
@@ -312,11 +310,19 @@
 	/* Check the filename */
 	if (pcFilename == NULL)
 		return 0;
-	
+
+#ifdef LULZ
+	/* FIXME! ATTENTION! Subtune addition is now temporarily disabled
+	 * again, due to following reason: the way it currently is "supposed"
+	 * to be done is horribly broken and causes an "infinite recursive
+	 * addition loop" in some cases. - ccr
+	 */
 	if (xs_has_tracknumber(pcFilename) != NULL)
 		return 1;
+#endif
 	
 	if (xs_status.sidPlayer->plrProbe(f)) {
+#ifdef LULZ
 		t_xs_tuneinfo *pInfo;
 		
 		pInfo = xs_status.sidPlayer->plrGetSIDInfo(pcFilename);
@@ -345,6 +351,9 @@
 			tmpResult = 1;
 			
 		xs_tuneinfo_free(pInfo);
+#else
+		tmpResult = 1;
+#endif
 	}
 		
 	return tmpResult;