diff options
Diffstat (limited to 'utils')
-rw-r--r-- | utils/livesync/src/livesync/imp.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index 15e922ee2..b6f3cef74 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -894,7 +894,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 |