Mercurial > audlegacy-plugins
changeset 643:dc0d35d888d2 trunk
[svn] - switch from pseudo delete tag call back to genuine one.
author | yaz |
---|---|
date | Tue, 13 Feb 2007 05:55:00 -0800 |
parents | 2605c5515bab |
children | 94ab06db73fa |
files | ChangeLog src/madplug/TODO src/madplug/fileinfo.c |
diffstat | 3 files changed, 9 insertions(+), 45 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Feb 12 21:58:47 2007 -0800 +++ b/ChangeLog Tue Feb 13 05:55:00 2007 -0800 @@ -1,3 +1,11 @@ +2007-02-13 05:58:47 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> + revision [1370] + - remove a debug output. + + trunk/src/xspf/xspf.c | 1 - + 1 file changed, 1 deletion(-) + + 2007-02-13 04:02:17 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> revision [1368] libxspf improvements:
--- a/src/madplug/TODO Mon Feb 12 21:58:47 2007 -0800 +++ b/src/madplug/TODO Tue Feb 13 05:55:00 2007 -0800 @@ -11,5 +11,5 @@ x replace tag editor with neno's X rename files for convenience of taking diff - utf8 id3v1 writing ?? (it requires modification to libid3tag.) -- complete tag deletion code +X complete tag deletion code - stream recording feature ??
--- a/src/madplug/fileinfo.c Mon Feb 12 21:58:47 2007 -0800 +++ b/src/madplug/fileinfo.c Tue Feb 13 05:55:00 2007 -0800 @@ -219,7 +219,6 @@ id3_file_close(id3file); } -#if 0 static void remove_id3_cb(GtkWidget * w, gpointer data) { struct id3_file *id3file; @@ -252,49 +251,6 @@ gtk_widget_set_sensitive(GTK_WIDGET(w), FALSE); gtk_widget_set_sensitive(GTK_WIDGET(data), FALSE); } -#endif - -static void remove_id3_cb(GtkWidget * w, gpointer data) -{ - struct id3_file *id3file; - struct id3_tag *id3tag; - - /* read tag from file */ - id3file = id3_file_open(info.filename, ID3_FILE_MODE_READWRITE); - if (!id3file) - return; - - id3tag = id3_file_tag(id3file); - if(id3tag) { - /* since current libid3tag cannot delete tag completely, just add a dummy. */ - const char *dummy = ""; - update_id3_frame(id3tag, ID3_FRAME_TITLE, dummy); - update_id3_frame(id3tag, ID3_FRAME_ARTIST, dummy); - update_id3_frame(id3tag, ID3_FRAME_ALBUM, dummy); - update_id3_frame(id3tag, ID3_FRAME_YEAR, dummy); - update_id3_frame(id3tag, ID3_FRAME_TRACK, dummy); - update_id3_frame(id3tag, ID3_FRAME_GENRE, "Other"); - update_id3_frame(id3tag, ID3_FRAME_COMMENT, dummy); - - if (id3_file_update(id3file) != 0) { - xmms_show_message("File Info", "Couldn't write tag!", "OK", FALSE, - NULL, NULL); - } - } - - id3_file_close(id3file); - - gtk_entry_set_text(GTK_ENTRY(title_entry), ""); - gtk_entry_set_text(GTK_ENTRY(artist_entry), ""); - gtk_entry_set_text(GTK_ENTRY(album_entry), ""); - gtk_entry_set_text(GTK_ENTRY(comment_entry), ""); - gtk_entry_set_text(GTK_ENTRY(year_entry), ""); - gtk_entry_set_text(GTK_ENTRY(tracknum_entry), ""); - gtk_entry_set_text(GTK_ENTRY(GTK_COMBO(genre_combo)->entry), ""); - gtk_widget_set_sensitive(GTK_WIDGET(w), FALSE); - gtk_widget_set_sensitive(GTK_WIDGET(data), FALSE); - -} static void change_buttons(GtkWidget * object)