diff src/vtx/vtx.c @ 1473:eb0913bf54c3

use get_gentitle_format() to get format string so that presets and custom string can coexist.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Sun, 12 Aug 2007 00:06:35 +0900
parents db616ccdd40c
children 3a252050736c
line wrap: on
line diff
--- a/src/vtx/vtx.c	Sat Aug 11 17:57:19 2007 +0300
+++ b/src/vtx/vtx.c	Sun Aug 12 00:06:35 2007 +0900
@@ -234,7 +234,7 @@
       seek_to = -1;
 
       ti = vtx_get_song_tuple_from_vtx(playback->filename, &vtx);
-      buf = tuple_formatter_process_string(ti, cfg.gentitle_format);
+      buf = tuple_formatter_process_string(ti, get_gentitle_format());
 
       vtx_ip.set_info (buf, vtx.hdr.regdata_size / 14 * 1000 / 50,
  	  	       14 * 50 * 8, freq, bits / 8);
@@ -298,7 +298,7 @@
   if (ayemu_vtx_open (&tmp, filename)) {
     Tuple *ti = vtx_get_song_tuple_from_vtx(filename, &tmp);
 
-    *title = tuple_formatter_process_string(ti, cfg.gentitle_format);
+    *title = tuple_formatter_process_string(ti, get_gentitle_format());
     *length = tuple_get_int(ti, "length");
 
     ayemu_vtx_free (&tmp);