changeset 1606:7ea3c9610ca0 trunk

[svn] - playlist_container_find() must check if ext is 1, besides NULL.
author yaz
date Mon, 28 Aug 2006 11:03:58 -0700
parents ce3ce44d6814
children 57676c0f2f33
files ChangeLog audacious/playlist_container.c
diffstat 2 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Aug 28 08:51:36 2006 -0700
+++ b/ChangeLog	Mon Aug 28 11:03:58 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-28 15:51:36 +0000  Yoshiki Yazawa <yaz@cc.rim.or.jp>
+  revision [2141]
+  - filepopup follows change of pointed song, i.e. it will hide while scrolling.
+  
+
+  Changes:        Modified:
+  +14 -8          trunk/audacious/ui_fileinfo.c  
+
+
 2006-08-27 16:04:05 +0000  Tony Vroon <chainsaw@gentoo.org>
   revision [2139]
   Fix up the warning fixes; by Torbj?\195?\182rn Svensson (a.k.a. Azoff on #audacious).
--- a/audacious/playlist_container.c	Mon Aug 28 08:51:36 2006 -0700
+++ b/audacious/playlist_container.c	Mon Aug 28 11:03:58 2006 -0700
@@ -44,7 +44,8 @@
 	GList *node;
 	PlaylistContainer *plc;
 
-	g_return_val_if_fail(ext != NULL, NULL);
+	/* check ext neither is NULL nor 1 (in a consequence of optimization). */
+	g_return_val_if_fail(ext != NULL && ext != (void *)1, NULL);
 
 	for (node = registered_plcs; node != NULL; node = g_list_next(node)) {
 		plc = PLAYLIST_CONTAINER(node->data);