changeset 3327:5296086f20cf trunk

make preset title format work.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sat, 11 Aug 2007 15:03:51 +0900
parents 6dbb73b8e28c
children e20c1f720153
files src/audacious/playlist.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Fri Aug 10 20:28:30 2007 -0500
+++ b/src/audacious/playlist.c	Sat Aug 11 15:03:51 2007 +0900
@@ -238,7 +238,8 @@
 
     /* entry is still around */
     formatter = tuple_get_string(tuple, "formatter");
-    entry->title = tuple_formatter_process_string(tuple, formatter ? formatter : cfg.gentitle_format);
+    entry->title = tuple_formatter_process_string(tuple, formatter ?
+                                                  formatter : xmms_get_gentitle_format());
     entry->length = tuple_get_int(tuple, "length");
     entry->tuple = tuple;
 
@@ -674,7 +675,8 @@
     PLAYLIST_UNLOCK( playlist->mutex );
     if (tuple != NULL) {
         const gchar *formatter = tuple_get_string(tuple, "formatter");
-        entry->title = tuple_formatter_process_string(tuple, formatter ? formatter : cfg.gentitle_format);
+        entry->title = tuple_formatter_process_string(tuple, formatter ?
+                                                      formatter : xmms_get_gentitle_format());
         entry->length = tuple_get_int(tuple, "length");
         entry->tuple = tuple;
     }