From f55c32ed37b8d3de1432fcbf3b6764d85efb71f5 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Wed, 8 Feb 2023 20:36:24 +0100 Subject: livesync: Document State's fields Part-of: --- utils/livesync/src/livesync/imp.rs | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'utils') diff --git a/utils/livesync/src/livesync/imp.rs b/utils/livesync/src/livesync/imp.rs index b7c24201..36f01e53 100644 --- a/utils/livesync/src/livesync/imp.rs +++ b/utils/livesync/src/livesync/imp.rs @@ -70,38 +70,79 @@ pub struct LiveSync { #[derive(Debug)] struct State { + /// See `PROP_LATENCY` latency: gst::ClockTime, + + /// See `PROP_LATE_THRESHOLD` late_threshold: Option, + + /// See `PROP_SINGLE_SEGMENT` single_segment: bool, + /// Latency reported by upstream upstream_latency: Option, + + /// Duration we assume for buffers without one fallback_duration: gst::ClockTime, + /// Whether we're in PLAYING state playing: bool, + + /// Whether our sinkpad is EOS eos: bool, + /// Flow state of our srcpad srcresult: Result, + + /// Wait operation for our next buffer clock_id: Option, + /// Segment of our sinkpad in_segment: Option>, + + /// Segment to be applied to the srcpad on the next queued buffer pending_segment: Option>, + + /// Segment of our srcpad out_segment: Option>, + /// Caps of our sinkpad in_caps: Option, + + /// Caps to be applied to the srcpad on the next queued buffer pending_caps: Option, + + /// Audio format of our sinkpad in_audio_info: Option, + + /// Audio format of our srcpad out_audio_info: Option, + /// Queue between sinkpad and srcpad queue: VecDeque, + + /// Whether our queue currently holds a buffer. We only allow one! buffer_queued: bool, + + /// Current buffer of our srcpad out_buffer: Option, + /// Running timestamp of our sinkpad in_timestamp: Option, + + /// Running timestamp of our srcpad out_timestamp: Option, + /// See `PROP_IN` num_in: u64, + + /// See `PROP_DROP` num_drop: u64, + + /// See `PROP_OUT` num_out: u64, + + /// See `PROP_DUPLICATE` num_duplicate: u64, } -- cgit v1.2.3