diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index a031bca9..56943342 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -898,7 +898,10 @@ impl LiveSync { } // At this stage we should really really have a segment - let segment = state.in_segment.as_ref().ok_or(gst::FlowError::Error)?; + let segment = state.in_segment.as_ref().ok_or_else(|| { + gst::error!(CAT, imp: self, "Missing segment"); + gst::FlowError::Error + })?; if state.single_segment { let dts = segment