diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2023-10-25 01:20:12 +0300 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@ltnglobal.com> | 2023-10-25 12:52:40 +0300 |
commit | d663f708ef324d385ef188499d116a2bcafc8979 (patch) | |
tree | 784136274266ad1a3fe7480adf58d5541c98918c /utils | |
parent | 6567041a3d2948685368920954eabf0f26d0c0f6 (diff) |
livesync: Log a category error when we are missing the segment
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1369>
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 |