totem-pl-parser r105 - in branches/gnome-2-22: . plparse



Author: hadess
Date: Sat May  3 23:02:57 2008
New Revision: 105
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=105&view=rev

Log:
2008-05-04  Bastien Nocera  <hadess hadess net>

	* plparse/totem-pl-parser.c (my_gnome_vfs_get_mime_type_for_data):
	Also force application/octet-stream mime-types through our home-made
	detection, fixes problems parsing a DOS text file at
	http://www.la-bas.org/podcast.php3 (Closes: #531289)



Modified:
   branches/gnome-2-22/ChangeLog
   branches/gnome-2-22/plparse/totem-pl-parser.c

Modified: branches/gnome-2-22/plparse/totem-pl-parser.c
==============================================================================
--- branches/gnome-2-22/plparse/totem-pl-parser.c	(original)
+++ branches/gnome-2-22/plparse/totem-pl-parser.c	Sat May  3 23:02:57 2008
@@ -1839,7 +1839,8 @@
 
 	mimetype = gnome_vfs_get_mime_type_for_data (data, len);
 
-	if (mimetype != NULL && strcmp (mimetype, "text/plain") == 0) {
+	if (mimetype != NULL &&
+	    (strcmp (mimetype, "text/plain") == 0 || strcmp (mimetype, "application/octet-stream") == 0)) {
 		PlaylistIdenCallback func;
 		guint i;
 



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