perf(rust): skip audio rewrites for identical FLAC metadata

This commit is contained in:
zarzet committed 2026-09-17 02:59:14 +07:00
1 parent 3e50dd75d6
commit 96b037bb34
4 files changed
+213 -6

No files matched your search

@@ -630,10 +630,10 @@ extension _DownloadQueueEmbedding on DownloadQueueNotifier {
}
}
// Native Go tag writers handle these formats in-process, streaming the
// audio through untouched — no FFmpeg spawn, no full container remux,
// no temp-promote copy. The Go side answers method=ffmpeg for files it
// can't handle natively, and any failure falls back to FFmpeg below.
// Native Rust tag writers handle these formats without spawning FFmpeg.
// Edits publish staged output atomically; identical FLAC headers skip
// the audio copy. The backend answers method=ffmpeg for unsupported files,
// and any failure falls back to FFmpeg below.
// Opus ReplayGain is written and verified separately below, through the
// same native R128 writer used by manual scans and album gain updates.
var embeddedNatively = false;