aboutsummaryrefslogtreecommitdiff
path: root/src/idop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/idop.c')
-rw-r--r--src/idop.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/idop.c b/src/idop.c
index 79f9491..7310aad 100644
--- a/src/idop.c
+++ b/src/idop.c
@@ -114,6 +114,14 @@ set_tags(const char *name)
frame = id3_frame_new(item->id);
if (id3_tag_attachframe(tag, frame))
error(1, 0, "cannot attach new frame");
+ } else {
+ struct id3_frame *fp;
+
+ while (fp = id3_tag_findframe(tag, item->id,
+ 1)) {
+ id3_tag_detachframe(tag, fp);
+ id3_frame_delete(fp);
+ }
}
set_frame_value(frame, item->v.value);
modified |= 1;

Return to:

Send suggestions and report system problems to the System administrator.