changeset 1599:825be2235f8c trunk

[svn] - Don't save empty lengths.
author nhjm449
date Sat, 26 Aug 2006 21:36:50 -0700
parents 2b3dd287f1c1
children 047c8b32c251
files ChangeLog Plugins/Container/xspf/xspf.c
diffstat 2 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Aug 26 21:21:35 2006 -0700
+++ b/ChangeLog	Sat Aug 26 21:36:50 2006 -0700
@@ -1,3 +1,12 @@
+2006-08-27 04:21:35 +0000  George Averill <nhjm449@gmail.com>
+  revision [2127]
+  - Tracks with unknown lengths shouldn't be considered 0 seconds long! :P
+  
+
+  Changes:        Modified:
+  +3 -0           trunk/Plugins/Container/xspf/xspf.c  
+
+
 2006-08-26 19:00:05 +0000  Tony Vroon <chainsaw@gentoo.org>
   revision [2125]
   CXXFLAGS fixes by Mike Frysinger (Gentoo).
--- a/Plugins/Container/xspf/xspf.c	Sat Aug 26 21:21:35 2006 -0700
+++ b/Plugins/Container/xspf/xspf.c	Sat Aug 26 21:36:50 2006 -0700
@@ -266,7 +266,7 @@
 				xmlAddChild(track, tmp);
 			}
 
-			if (entry->tuple->length != 0)
+			if (entry->tuple->length != NULL && entry->tuple->length != -1)
 			{
 				gchar *str;
 				str = g_malloc(128); // XXX fix me.