Mercurial > audlegacy-plugins
comparison src/madplug/decoder.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 | 4e612b01f303 |
comparison
equal
deleted
inserted
replaced
| 1472:de03e6ff615d | 1473:eb0913bf54c3 |
|---|---|
| 481 | 481 |
| 482 /* set mainwin title */ | 482 /* set mainwin title */ |
| 483 if (info->title) | 483 if (info->title) |
| 484 g_free(info->title); | 484 g_free(info->title); |
| 485 info->title = tuple_formatter_process_string(info->tuple, audmad_config.title_override == TRUE ? | 485 info->title = tuple_formatter_process_string(info->tuple, audmad_config.title_override == TRUE ? |
| 486 audmad_config.id3_format : cfg.gentitle_format); | 486 audmad_config.id3_format : get_gentitle_format()); |
| 487 | 487 |
| 488 tlen = (gint) mad_timer_count(info->duration, MAD_UNITS_MILLISECONDS), | 488 tlen = (gint) mad_timer_count(info->duration, MAD_UNITS_MILLISECONDS), |
| 489 mad_plugin->set_info(info->title, | 489 mad_plugin->set_info(info->title, |
| 490 (tlen == 0 || info->size <= 0) ? -1 : tlen, | 490 (tlen == 0 || info->size <= 0) ? -1 : tlen, |
| 491 info->bitrate, info->freq, info->channels); | 491 info->bitrate, info->freq, info->channels); |
