comparison src/madplug/decoder.c @ 1485:4e612b01f303

- make use of tuple_formatter_make_title_string(). now madplug can show file name if metadata is not available. - temporal fix for the bug which prevented from playing remote file. - some cleanups.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Mon, 13 Aug 2007 19:57:03 +0900
parents eb0913bf54c3
children d158ce84fda7
comparison
equal deleted inserted replaced
1483:e8330e6bd0ba 1485:4e612b01f303
480 } 480 }
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_make_title_string(info->tuple, audmad_config.title_override == TRUE ?
486 audmad_config.id3_format : get_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,