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



Author: hadess
Date: Sat Jan 19 16:03:33 2008
New Revision: 41
URL: http://svn.gnome.org/viewvc/totem-pl-parser?rev=41&view=rev

Log:
2008-01-19  Bastien Nocera  <hadess hadess net>

	* plparse/totem-pl-parser-podcast.c: (totem_pl_parser_is_rss),
	(totem_pl_parser_is_atom), (totem_pl_parser_is_opml):
	* plparse/totem-pl-parser-qt.c: (totem_pl_parser_is_quicktime):
	* plparse/totem-pl-parser-wm.c: (totem_pl_parser_is_asx):
	Fix memmem args order, fixes some playlist not being recognised
	as such



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

Modified: trunk/plparse/totem-pl-parser-podcast.c
==============================================================================
--- trunk/plparse/totem-pl-parser-podcast.c	(original)
+++ trunk/plparse/totem-pl-parser-podcast.c	Sat Jan 19 16:03:33 2008
@@ -53,8 +53,8 @@
 	if (len > MIME_READ_CHUNK_SIZE)
 		len = MIME_READ_CHUNK_SIZE;
 
-	if (memmem (RSS_NEEDLE, strlen (RSS_NEEDLE),
-		    data, len) != NULL)
+	if (memmem (data, len,
+		    RSS_NEEDLE, strlen (RSS_NEEDLE)) != NULL)
 		return TRUE;
 
 	return FALSE;
@@ -68,8 +68,8 @@
 	if (len > MIME_READ_CHUNK_SIZE)
 		len = MIME_READ_CHUNK_SIZE;
 
-	if (memmem (ATOM_NEEDLE, strlen (ATOM_NEEDLE),
-		    data, len) != NULL)
+	if (memmem (data, len,
+		    ATOM_NEEDLE, strlen (ATOM_NEEDLE)) != NULL)
 		return TRUE;
 
 	return FALSE;
@@ -83,8 +83,8 @@
 	if (len > MIME_READ_CHUNK_SIZE)
 		len = MIME_READ_CHUNK_SIZE;
 
-	if (memmem (OPML_NEEDLE, strlen (OPML_NEEDLE),
-		    data, len) != NULL)
+	if (memmem (data, len,
+		    OPML_NEEDLE, strlen (OPML_NEEDLE)) != NULL)
 		return TRUE;
 
 	return FALSE;

Modified: trunk/plparse/totem-pl-parser-qt.c
==============================================================================
--- trunk/plparse/totem-pl-parser-qt.c	(original)
+++ trunk/plparse/totem-pl-parser-qt.c	Sat Jan 19 16:03:33 2008
@@ -58,8 +58,8 @@
 	if (g_str_has_prefix (data, "SMILtext") != FALSE)
 		return TRUE;
 
-	if (memmem (QT_NEEDLE, strlen (QT_NEEDLE),
-		    data, len) != NULL)
+	if (memmem (data, len,
+		    QT_NEEDLE, strlen (QT_NEEDLE)) != NULL)
 		return TRUE;
 
 	return FALSE;

Modified: trunk/plparse/totem-pl-parser-wm.c
==============================================================================
--- trunk/plparse/totem-pl-parser-wm.c	(original)
+++ trunk/plparse/totem-pl-parser-wm.c	Sat Jan 19 16:03:33 2008
@@ -54,11 +54,11 @@
 	if (len > MIME_READ_CHUNK_SIZE)
 		len = MIME_READ_CHUNK_SIZE;
 
-	if (memmem (ASX_NEEDLE, strlen (ASX_NEEDLE),
-		    data, len) != NULL)
+	if (memmem (data, len,
+		    ASX_NEEDLE, strlen (ASX_NEEDLE)) != NULL)
 		return TRUE;
-	if (memmem (ASX_NEEDLE2, strlen (ASX_NEEDLE2),
-		    data, len) != NULL)
+	if (memmem (data, len,
+		    ASX_NEEDLE2, strlen (ASX_NEEDLE2)) != NULL)
 		return TRUE;
 
 	return FALSE;



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