Skip to content

Show default/total track counts in the default-flags detection warning#794

Merged
ptr727 merged 1 commit into
developfrom
feature/default-flags-detect-context
Jul 1, 2026
Merged

Show default/total track counts in the default-flags detection warning#794
ptr727 merged 1 commit into
developfrom
feature/default-flags-detect-context

Conversation

@ptr727

@ptr727 ptr727 commented Jul 1, 2026

Copy link
Copy Markdown
Owner

Summary

The Redundant Default flags detected warning (added in #793) reported only the count of Default-flagged tracks per type (Video: 1, Audio: 1, Subtitle: 0), so it wasn't possible to tell why a track was flagged. Report the flagged count over the total track count per type instead:

Redundant Default flags detected : Video: 1/1, Audio: 1/1, Subtitle: 0/2

Now the reason is visible:

  • 1/1 — a lone track (a single track of a type needs no Default flag)
  • 2/4 — multiple defaults (keep the preferred, clear the rest)

Message-only change; full suite green (162).

The redundant Default flags warning reported only the Default-flagged count per
track type, so it was not clear why a track was flagged. Report the count over
the total track count per type (e.g. Video: 1/1, Audio: 1/1, Subtitle: 0/2) so
the reason is visible: 1/1 is a lone track, 2/4 is multiple defaults.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 1, 2026 22:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the RepairDefaultFlags detection warning in ProcessFile to include both default-flagged and total track counts per track type, making it easier to understand why tracks are considered redundant-default candidates during processing.

Changes:

  • Expand the Redundant Default flags detected warning from per-type default counts to default/total counts for Video/Audio/Subtitle.
  • Add a clarifying comment explaining how to interpret 1/1 vs 2/4 scenarios.

@ptr727 ptr727 merged commit 3235a8a into develop Jul 1, 2026
13 checks passed
@ptr727 ptr727 deleted the feature/default-flags-detect-context branch July 1, 2026 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants