mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-09-27 06:20:03 +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/1388>
This commit is contained in:
parent
79f58785d9
commit
04b7a1afd6
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