From 075223a4bde9c1039dfdeca06c6129391677e4a1 Mon Sep 17 00:00:00 2001 From: MattJackson Date: Tue, 28 Jul 2026 12:09:38 -0700 Subject: [PATCH] disc: promote locate_ranges to pub (engine multipass reads it) Small pub promotion + fmt one-lining. The relocated multipass progress reporting in freemkv-engine needs locate_ranges externally. No behavior change. --- src/disc/mod.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/disc/mod.rs b/src/disc/mod.rs index 9b12b8c..21b7c4c 100644 --- a/src/disc/mod.rs +++ b/src/disc/mod.rs @@ -716,10 +716,7 @@ fn range_chapter(lba: u32, title: &DiscTitle) -> (Option, Option) { /// This is the single place range→chapter/time annotation happens; autorip used /// to own it and read the mapfile to do so. Now the library computes it from /// its in-memory mapfile + title, and the client renders the result verbatim. -pub(crate) fn locate_ranges( - raw: &[(u64, u64)], - title: &DiscTitle, -) -> crate::progress::LocatedProgress { +pub fn locate_ranges(raw: &[(u64, u64)], title: &DiscTitle) -> crate::progress::LocatedProgress { use crate::consts::{MILLIS_PER_SEC, SECTOR_BYTES_U64}; use crate::progress::{LocatedProgress, LocatedRange}; const MAX_LOCATED: usize = 50;