[totem-pl-parser] check for block devices only on non-win32 systems



commit e477455fb75868970ba80584d2bf32b13fda215b
Author: Shixin Zeng <zeng shixin gmail com>
Date:   Tue Apr 20 15:43:36 2010 -0500

    check for block devices only on non-win32 systems
    
    https://bugzilla.gnome.org/show_bug.cgi?id=575373

 plparse/totem-pl-parser.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plparse/totem-pl-parser.c b/plparse/totem-pl-parser.c
index f0a4dc0..c8b7cec 100644
--- a/plparse/totem-pl-parser.c
+++ b/plparse/totem-pl-parser.c
@@ -720,6 +720,7 @@ my_g_file_info_get_mime_type_with_data (GFile *file, gpointer *data, TotemPlPars
 
 	*data = NULL;
 
+#ifndef _WIN32
 	/* Stat for a block device, we're screwed as far as speed
 	 * is concerned now */
 	if (g_file_is_native (file) != FALSE) {
@@ -733,6 +734,7 @@ my_g_file_info_get_mime_type_with_data (GFile *file, gpointer *data, TotemPlPars
 		}
 		g_free (path);
 	}
+#endif
 
 	/* Open the file. */
 	stream = g_file_read (file, NULL, &error);



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