# HG changeset patch # User mf0102 # Date 1177799235 25200 # Node ID cc0c5c9ad2b981e97050b03e032495793d8b6fa8 # Parent 7b0d16a9a92f21319113f699547e7a0aaa7119f4 [svn] - Out-Lame can now prepend the playlist position to the filename if the track number can't be found diff -r 7b0d16a9a92f -r cc0c5c9ad2b9 ChangeLog --- a/ChangeLog Fri Apr 27 12:44:37 2007 -0700 +++ b/ChangeLog Sat Apr 28 15:27:15 2007 -0700 @@ -1,3 +1,13 @@ +2007-04-27 19:44:37 +0000 Cristi Magherusan + revision [2104] + fixed all the warnings + + trunk/src/lastfm/Makefile | 1 + trunk/src/lastfm/lastfm.c | 45 +++++++++------------------------------ + trunk/src/lastfm/lastfm.h | 53 ++++++++++++++++++++++++++++++++++++++++++++++ + 3 files changed, 65 insertions(+), 34 deletions(-) + + 2007-04-27 09:29:33 +0000 Yoshiki Yazawa revision [2102] - replace almost all of outlame_write() with standard code from disk_writer in hope of fixing endianness problem. diff -r 7b0d16a9a92f -r cc0c5c9ad2b9 src/lame/out_lame.c --- a/src/lame/out_lame.c Fri Apr 27 12:44:37 2007 -0700 +++ b/src/lame/out_lame.c Sat Apr 28 15:27:15 2007 -0700 @@ -367,10 +367,10 @@ #endif if (tuple && !b_use_path_anyway) { - if (b_prepend_track_number && tuple->track_number) { + if (b_prepend_track_number) { filename = g_strdup_printf("%s/%.02d %s.mp3", b_use_source_file_path ? tuple->file_path : file_path, - tuple->track_number, title); + tuple->track_number ? tuple->track_number : pos+1, title); } else { filename = g_strdup_printf("%s/%s.mp3", @@ -2346,7 +2346,7 @@ (use_source_file_path), TRUE); prepend_track_number = - gtk_check_button_new_with_label("Prepend track number to filename"); + gtk_check_button_new_with_label("Prepend track number/playlist position to filename"); gtk_box_pack_start(GTK_BOX(GTK_BOX(path_hbox)), prepend_track_number, TRUE, TRUE, 5); gtk_signal_connect(GTK_OBJECT(prepend_track_number), "toggled",