changeset 3330:8745ffb73f49 trunk

Automated merge with ssh://hg.atheme.org//hg/audacious
author William Pitcock <nenolod@atheme-project.org>
date Sat, 11 Aug 2007 05:44:31 -0500
parents 70149c3555f4 (current diff) e20c1f720153 (diff)
children 9c53688bb559
files
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/playlist.c	Sat Aug 11 05:44:21 2007 -0500
+++ b/src/audacious/playlist.c	Sat Aug 11 05:44:31 2007 -0500
@@ -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;
     }
--- a/src/audacious/tuple.h	Sat Aug 11 05:44:21 2007 -0500
+++ b/src/audacious/tuple.h	Sat Aug 11 05:44:31 2007 -0500
@@ -41,5 +41,6 @@
 TupleValueType tuple_get_value_type(Tuple *tuple, const gchar *field);
 const gchar *tuple_get_string(Tuple *tuple, const gchar *field);
 int tuple_get_int(Tuple *tuple, const gchar *field);
+#define tuple_free(x) mowgli_object_unref(x);
 
 #endif