[maemo-commits] [maemo-commits] r16306 - projects/haf/branches/hildon-thumbnail/daemonize/daemon

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Wed Oct 1 11:56:06 EEST 2008
Author: pvanhoof
Date: 2008-10-01 11:56:04 +0300 (Wed, 01 Oct 2008)
New Revision: 16306

Modified:
   projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c
Log:


Modified: projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c	2008-10-01 08:51:20 UTC (rev 16305)
+++ projects/haf/branches/hildon-thumbnail/daemonize/daemon/albumart.c	2008-10-01 08:56:04 UTC (rev 16306)
@@ -187,9 +187,10 @@
 	gsize s = (gsize) strlen (filename);
 
 	while (item = g_dir_read_name (dir)) {
-		if ((s == 0 || g_ascii_strncasecmp (item, filename, s) == 0) && 
-		    (strcasestr ((char *) item, (char *) ".jpeg") || 
-		     strcasestr ((char *) item, (char *) ".jpg") )) 
+		if ((strcasestr ((char *) item, (char *) ".jpeg") || 
+		     strcasestr ((char *) item, (char *) ".jpg") ) &&
+		    (s == 0 || g_ascii_strncasecmp (item, filename, s) == 0)
+		  ) 
 		{
 			retval = g_strdup (item);
 			break;


More information about the maemo-commits mailing list