mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-08 18:25:30 +00:00
livesync: Log a category error when we are missing the segment
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1387>
This commit is contained in:
parent
ab84da6d32
commit
274e3cd71b
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue