mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-22 08:58:15 +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/1369>
This commit is contained in:
parent
6567041a3d
commit
d663f708ef
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue