comparison src/vorbis/vorbis.c @ 1489:d018975175f4

make use of get_gentitle_format() and tuple_formatter_make_title_string()
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Mon, 13 Aug 2007 20:24:36 +0900
parents db616ccdd40c
children 177aec41b238 d158ce84fda7
comparison
equal deleted inserted replaced
1488:ae78c9753da8 1489:d018975175f4
606 vorbis_get_song_info(char *filename, char **title, int *length) 606 vorbis_get_song_info(char *filename, char **title, int *length)
607 { 607 {
608 Tuple *tuple = get_song_tuple(filename); 608 Tuple *tuple = get_song_tuple(filename);
609 609
610 *length = tuple_get_int(tuple, "length"); 610 *length = tuple_get_int(tuple, "length");
611 *title = tuple_formatter_process_string(tuple, vorbis_cfg.tag_override ? 611 *title = tuple_formatter_make_title_string(tuple, vorbis_cfg.tag_override ?
612 vorbis_cfg.tag_format : cfg.gentitle_format); 612 vorbis_cfg.tag_format : get_gentitle_format());
613 613
614 tuple_free(tuple); 614 tuple_free(tuple);
615 } 615 }
616 616
617 static const gchar * 617 static const gchar *
827 Tuple *input; 827 Tuple *input;
828 gchar *tmp; 828 gchar *tmp;
829 829
830 input = get_tuple_for_vorbisfile(vorbisfile, filename, vorbis_is_streaming); 830 input = get_tuple_for_vorbisfile(vorbisfile, filename, vorbis_is_streaming);
831 831
832 displaytitle = tuple_formatter_process_string(input, vorbis_cfg.tag_override ? 832 displaytitle = tuple_formatter_make_title_string(input, vorbis_cfg.tag_override ?
833 vorbis_cfg.tag_format : cfg.gentitle_format); 833 vorbis_cfg.tag_format : get_gentitle_format());
834 834
835 if ((tmp = vfs_get_metadata(((VFSVorbisFile *) vorbisfile->datasource)->fd, "stream-name")) != NULL) 835 if ((tmp = vfs_get_metadata(((VFSVorbisFile *) vorbisfile->datasource)->fd, "stream-name")) != NULL)
836 { 836 {
837 gchar *old = displaytitle; 837 gchar *old = displaytitle;
838 838