Retag queued Matroska files in place instead of converting to MP4

The queue now mirrors the document window for .mkv/.mka/.mks sources.
The window's whole save branching (importer-order track snapshot, chapter
row snapshot, staleness guard, tag-writer-vs-remuxer choice) moved out of
Document into a shared MatroskaSaver used by both Document and QueueItem
so the two paths cannot drift. Queue items import tags-only, keep the
Matroska extension (in place, or stream-copy into a destination folder),
MP4-only actions no-op on them, and send-to-queue hands the item the
document's model plus its identity pairing baseline via attachMatroskaSaver.

Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
Scott GarrettandClaude Code committed 2026-11-29 20:33:47 -05:00
1 parent a1da1c8106
commit 80ca3970ec
7 files changed
+442 -195

No files matched your search

+3 -2
View File
@@ -802,8 +802,9 @@ final class DocumentWindowController: NSWindowController, NSWindowDelegate, Trac
}
// Reordering must never touch a Matroska document: the remuxer pairs
// TrackEntry elements against mkvSourceTracks by identity, and a
// reordered model would mispair them (same rule as delete(tracks:)).
// TrackEntry elements against the saver's importer-order snapshot by
// identity, and a reordered model would mispair them (same rule as
// delete(tracks:)).
if tracks.isEmpty == false, doc.isMatroska == false {
if Prefs.organizeAlternateGroups {
mp4.organizeAlternateGroups()