changeset 2389:46d3e970f0a5

Automated merge with ssh://hg.atheme.org//hg/audacious-plugins
author William Pitcock <nenolod@atheme.org>
date Thu, 14 Feb 2008 15:44:10 -0600
parents 2fe51f6ddb36 (diff) 74ab1fa87598 (current diff)
children bd9673d8b7d5
files
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/modplug/modplugbmp.cxx	Thu Feb 14 22:23:52 2008 +0100
+++ b/src/modplug/modplugbmp.cxx	Thu Feb 14 15:44:10 2008 -0600
@@ -548,7 +548,10 @@
 	aud_tuple_associate_int(ti, FIELD_LENGTH, NULL, lSoundFile->GetSongTime() * 1000);
 	
 	gchar *tmps2 = MODPLUG_CONVERT(lSoundFile->GetTitle());
-	aud_tuple_associate_string(ti, FIELD_TITLE, NULL, tmps2);
+	// Chop any leading spaces off. They are annoying in the playlist.
+	gchar *tmps3 = tmps2; // Make another pointer so tmps2 can still be free()d
+	while ( *tmps3 == ' ' ) tmps3++ ;
+	aud_tuple_associate_string(ti, FIELD_TITLE, NULL, tmps3);
 	g_free(tmps2);
 	
 	//unload the file