totem-pl-parser r148 - in trunk: . plparse



Author: hadess
Date: Thu Jul  3 13:02:07 2008
New Revision: 148
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=148&view=rev

Log:
2008-07-03  Bastien Nocera  <hadess hadess net>

	* plparse/totem-pl-parser.c
	(my_g_file_info_get_mime_type_with_data): Fix the commit below
	and use g_stat directly



Modified:
   trunk/ChangeLog
   trunk/plparse/totem-pl-parser.c

Modified: trunk/plparse/totem-pl-parser.c
==============================================================================
--- trunk/plparse/totem-pl-parser.c	(original)
+++ trunk/plparse/totem-pl-parser.c	Thu Jul  3 13:02:07 2008
@@ -95,9 +95,9 @@
 
 #include "config.h"
 
-#include <sys/stat.h>
 #include <string.h>
 #include <glib.h>
+#include <glib/gstdio.h>
 #include <glib/gi18n-lib.h>
 #include <gio/gio.h>
 
@@ -645,7 +645,7 @@
 		char *path;
 
 		path = g_file_get_path (file);
-		if (stat (path, &buf) == 0 && S_ISBLK (buf.st_mode)) {
+		if (g_stat (path, &buf) == 0 && S_ISBLK (buf.st_mode)) {
 			g_free (path);
 			return g_strdup (BLOCK_DEVICE_TYPE);
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]