changeset 370:11d9ea46c9c7 trunk

[svn] Use file magic instead of extensions.
author chainsaw
date Sat, 31 Dec 2005 15:15:42 -0800
parents 5d0a74c31ee6
children e296500f595a
files Plugins/Input/sid/xmms-sid.c
diffstat 1 files changed, 1 insertions(+), 23 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Input/sid/xmms-sid.c	Sat Dec 31 15:04:34 2005 -0800
+++ b/Plugins/Input/sid/xmms-sid.c	Sat Dec 31 15:15:42 2005 -0800
@@ -265,31 +265,9 @@
 	if (pcFilename == NULL)
 		return FALSE;
 
-	/* Try to detect via detection routine, if required */
-	if (xs_cfg.detectMagic && xs_status.sidPlayer->plrIsOurFile(pcFilename))
+	if (xs_status.sidPlayer->plrIsOurFile(pcFilename))
 		return TRUE;
 
-	/* Detect just by checking filename extension */
-	pcExt = xs_strrchr(pcFilename, '.');
-	if (pcExt) {
-		pcExt++;
-		switch (xs_cfg.playerEngine) {
-		case XS_ENG_SIDPLAY1:
-		case XS_ENG_SIDPLAY2:
-			if (!g_strcasecmp(pcExt, "psid"))
-				return TRUE;
-			if (!g_strcasecmp(pcExt, "sid"))
-				return TRUE;
-			if (!g_strcasecmp(pcExt, "dat"))
-				return TRUE;
-			if (!g_strcasecmp(pcExt, "inf"))
-				return TRUE;
-			if (!g_strcasecmp(pcExt, "info"))
-				return TRUE;
-			break;
-		}
-	}
-
 	return FALSE;
 }