timeline: order fcpxml export after its limited form (Sonar duplication with otio)

This commit is contained in:
FredApps committed 2026-11-16 07:37:34 +01:00
1 parent 281508dc4b
commit d01d8e5f70
1 file changed
+7 -5
+7 -5
View File
@@ -865,10 +865,7 @@ struct Exp<'a, 'r> {
building: Vec<ItemId>,
}
pub fn export(p: &Project, seq_id: ItemId, opts: &ExportOptions, report: &mut Report) -> Result<String> {
export_with_report_limit(p, seq_id, opts, report, None)
}
/// Write FCPXML with an optional distinct-diagnostic limit.
/// Write FCPXML with an optional distinct-diagnostic limit ([`export`] has none).
pub fn export_with_report_limit(
p: &Project,
seq_id: ItemId,
@@ -876,7 +873,7 @@ pub fn export_with_report_limit(
report: &mut Report,
report_limit: Option<usize>,
) -> Result<String> {
let seq = p.sequence(seq_id).ok_or(Error::NoSequence(seq_id))?;
let Some(seq) = p.sequence(seq_id) else { return Err(Error::NoSequence(seq_id)) };
let mut x = Exp {
p,
opts,
@@ -908,6 +905,11 @@ pub fn export_with_report_limit(
Ok(out)
}
/// Write the sequence `seq_id` as FCPXML; what it cannot carry is in `report`.
pub fn export(p: &Project, seq_id: ItemId, opts: &ExportOptions, report: &mut Report) -> Result<String> {
export_with_report_limit(p, seq_id, opts, report, None)
}
/// One storyline element being written.
struct El {
start: Tick,