Make chapter tracks deletable, insertable, and language-editable
Delete: the phase-1 gate against deleting the chapter pseudo-track on Matroska documents is obsolete now that chapter changes ride the stream-copy remuxer — a removed pseudo-track simply makes the model report "no chapters", which removes the Chapters element on save (the same path emptying the Chapters tab already took). The toolbar Delete button's validation is corrected too; it still rejected chapter-only selections after deleteSelection was opened up. Insert: the Actions toolbar gets a single "Insert a chapter" item, and "Insert a chapter every" (previously MP4-only) is enabled on Matroska. Both create the chapter track when the document has none, doing the tags-only bookkeeping the model needs (dense display trackId, updateChangeCount). A single insert lands 1s after the latest start, clamped to the track duration, so it can never tie with a stored chapter — ties get clamped +1ms on write and would silently shift the user's own chapter times. Language: the chapter row's language popup stays editable on MKV documents (the value rides the remuxer's chapter rebuild, not the tag writer, since the pseudo-track has no TrackEntry), and the Matroska chapters snapshot carries it so a language-only edit triggers the remux. Pairs with the submodule's ChapterLanguage round trip. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
1 parent
8520d729c6
commit
f457b4e89c
13 files changed
+124
-30
No files matched your search
@@ -266,6 +266,7 @@ Undo tag insert. */
|
||||
"Insert" = "Inserir";
|
||||
|
||||
/* Toolbar */
|
||||
"Insert a chapter" = "Inserir um capítulo";
|
||||
"Insert a chapter every" = "Inserir um Capítulo a Cada";
|
||||
|
||||
/* color profile */
|
||||
|
||||
Reference in new issue
Block a user