# HG changeset patch # User yaz # Date 1174803305 25200 # Node ID 06ecbb1e3dbbadfdc61b833673bcf5c6348540d9 # Parent 44a922a4a591e8746c193c89996e2a96a251a82e [svn] - non-utf string had been used for file name in window title of File Info window. patch by M.H. - tweak debug printout. diff -r 44a922a4a591 -r 06ecbb1e3dbb ChangeLog --- a/ChangeLog Sat Mar 24 17:31:14 2007 -0700 +++ b/ChangeLog Sat Mar 24 23:15:05 2007 -0700 @@ -1,3 +1,11 @@ +2007-03-25 00:31:14 +0000 William Pitcock + revision [1894] + - fix validation of mpeg2 files, by ccr. + + trunk/src/madplug/plugin.c | 14 ++++++++++---- + 1 file changed, 10 insertions(+), 4 deletions(-) + + 2007-03-24 16:44:44 +0000 Yoshiki Yazawa revision [1892] - small cleanups. diff -r 44a922a4a591 -r 06ecbb1e3dbb src/madplug/fileinfo.c --- a/src/madplug/fileinfo.c Sat Mar 24 17:31:14 2007 -0700 +++ b/src/madplug/fileinfo.c Sat Mar 24 23:15:05 2007 -0700 @@ -571,7 +571,7 @@ #ifdef DEBUG { - gchar *tmp = g_filename_to_utf8(filename, -1, NULL, NULL, NULL); + gchar *tmp = str_to_utf8(filename); g_message("f: audmad_get_file_info: %s", tmp); g_free(tmp); } @@ -588,7 +588,7 @@ input_get_info(&info, info.remote ? TRUE : audmad_config.fast_play_time_calc); - title = g_strdup_printf("File Info - %s", g_basename(filename)); + title = g_strdup_printf("File Info - %s", g_basename(utf_filename)); gtk_window_set_title(GTK_WINDOW(window), title); g_free(title); @@ -706,7 +706,7 @@ string = id3_field_getstrings(field, 0); genre = mad_parse_genre(string); #ifdef DEBUG - { + if (genre) { gchar *utf = (gchar *)id3_ucs4_utf8duplicate(genre); g_print("genre = %s\n", utf); g_print("genre num = %d\n", id3_genre_number(genre));