Package: mp3gain Version: 1.5.1-3 Severity: wishlist Tags: patch Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3022529&group_id=49979&atid=458161
When enhancing mp3gain to write more than one flavour of ID3 tag (see the bug I just filed, whose number I haven't received yet), it's useful to have an option to force the tag to be rewritten, without having to re-analyze the file. See attached. Regards, Simon
#! /bin/sh /usr/share/dpatch/dpatch-run ## 10_force_update.dpatch by Simon McVittie <s...@debian.org> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: add a command-line option "-s u" to force writing out the tag @DPATCH@ --- mp3gain-1.5.1.orig/mp3gain.c +++ mp3gain-1.5.1/mp3gain.c @@ -143,6 +143,7 @@ int skipTag = 0; int deleteTag = 0; int forceRecalculateTag = 0; +int forceUpdateTag = 0; int checkTagOnly = 0; static int useId3 = 0; @@ -1654,6 +1655,10 @@ case 'S': skipTag = !0; break; + case 'u': + case 'U': + forceUpdateTag = !0; + break; case 'r': case 'R': forceRecalculateTag = !0; @@ -1735,7 +1740,7 @@ fileTags[mainloop].apeTag = NULL; fileTags[mainloop].lyrics3tag = NULL; fileTags[mainloop].id31tag = NULL; - tagInfo[mainloop].dirty = 0; + tagInfo[mainloop].dirty = forceUpdateTag; tagInfo[mainloop].haveAlbumGain = 0; tagInfo[mainloop].haveAlbumPeak = 0; tagInfo[mainloop].haveTrackGain = 0;
signature.asc
Description: Digital signature