changeset 4852:c4698861e8fb

Fix .M files being recognized as playlists. Pointed out by Chainsaw.
author William Pitcock <nenolod@atheme.org>
date Tue, 14 Apr 2009 15:16:54 -0500
parents 8ebd8358de04
children 4beca46cb92b
files src/audlegacy/playlist_container.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audlegacy/playlist_container.c	Mon Apr 13 01:18:06 2009 -0400
+++ b/src/audlegacy/playlist_container.c	Tue Apr 14 15:16:54 2009 -0500
@@ -1,4 +1,4 @@
-/*
+a/*
  * Audacious: A cross-platform multimedia player
  * Copyright (c) 2006-2007 William Pitcock, Tony Vroon, George Averill,
  *                         Giacomo Lozito, Derek Pomery and Yoshiki Yazawa.
@@ -51,7 +51,7 @@
 	for (node = registered_plcs; node != NULL; node = g_list_next(node)) {
 		plc = PLAYLIST_CONTAINER(node->data);
 
-		if (!g_ascii_strncasecmp(plc->ext, ext, strlen(ext)))
+		if (!g_ascii_strncasecmp(plc->ext, ext, strlen(plc->ext)))
 			return plc;
 	}