gnome-media r3918 - in trunk/grecord: . src



Author: hadess
Date: Fri Aug 29 14:37:38 2008
New Revision: 3918
URL: http://svn.gnome.org/viewvc/gnome-media?rev=3918&view=rev

Log:
2008-08-29  Bastien Nocera  <hadess hadess net>

	* src/gnome-recorder.c (gsr_add_recent): Another use of gnome-vfs



Modified:
   trunk/grecord/ChangeLog
   trunk/grecord/src/gnome-recorder.c

Modified: trunk/grecord/src/gnome-recorder.c
==============================================================================
--- trunk/grecord/src/gnome-recorder.c	(original)
+++ trunk/grecord/src/gnome-recorder.c	Fri Aug 29 14:37:38 2008
@@ -28,7 +28,6 @@
 #endif
 
 #include <gconf/gconf-client.h>
-#include <libgnomevfs/gnome-vfs.h>
 #include <gnome.h>
 
 #include <gst/gst.h>
@@ -97,10 +96,10 @@
 	if (uri == NULL)
 		return;
 
-	data.mime_type = gnome_vfs_get_mime_type (uri);
+	data.mime_type = g_content_type_guess (uri, NULL, 0, NULL);
 	if (data.mime_type == NULL) {
 		/* No mime-type means warnings, and it breaks when adding
-		 * non-gnome-vfs supported URI schemes */
+		 * non-GIO supported URI schemes */
 		g_free (uri);
 		return;
 	}



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