From fb7d36d32529b18d6710197ac484f5c30b1ddfe4 Mon Sep 17 00:00:00 2001 From: Romain Beauxis Date: Mon, 14 Oct 2024 10:42:42 -0500 Subject: [PATCH] Add debugging log. --- src/core/source.ml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/core/source.ml b/src/core/source.ml index d741b6fab5..d6c681ff01 100644 --- a/src/core/source.ml +++ b/src/core/source.ml @@ -640,7 +640,12 @@ class virtual generate_from_multiple_sources ~merge ~track_sensitive () = | Some s when last_source == s -> let remainder = s#get_partial_frame (fun frame -> - assert (last_chunk_pos < Frame.position frame); + if Frame.position frame <= last_chunk_pos then ( + self#log#critical + "Source %s was re-selected but did not produce \ + enough data: %d - assert s#is_ready; + if not s#is_ready then ( + self#log#critical "Underlying source %s is not ready!" s#id; + assert false); let new_track = s#get_partial_frame (fun frame -> match self#split_frame frame with