Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/livesync/src/livesync/imp.rs5
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