diff options
author | Jan Schmidt <jan@centricular.com> | 2020-12-11 15:44:53 +0300 |
---|---|---|
committer | Sebastian Dröge <slomo@coaxion.net> | 2020-12-11 16:02:00 +0300 |
commit | f57ce41e89e99d374b9afc6a512f064d1b1f3489 (patch) | |
tree | b3eb42779ea828b5123d02f9e1cb9ebdef689f90 /utils | |
parent | fddf33d339cef45cfbe8d36180f5dcf4869bbb9c (diff) |
fallbackswitch: Document return parameters for get_next_buffer()
The return type for get_next_buffer() is quite complex, so add some
comments about what is what.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/src/fallbackswitch/imp.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/utils/fallbackswitch/src/fallbackswitch/imp.rs b/utils/fallbackswitch/src/fallbackswitch/imp.rs index 718e309d1..926464623 100644 --- a/utils/fallbackswitch/src/fallbackswitch/imp.rs +++ b/utils/fallbackswitch/src/fallbackswitch/imp.rs @@ -531,8 +531,18 @@ impl FallbackSwitch { agg: &super::FallbackSwitch, timeout: bool, ) -> ( - Result<(gst::Buffer, gst::Caps, bool), gst::FlowError>, - (bool, bool), + Result< + ( + gst::Buffer, // Next buffer from the chosen pad + gst::Caps, // Caps for the buffer + bool, // If the input pad changed to/from primary<->fallback + ), + gst::FlowError, + >, + ( + bool, // If the health of the primary pad changed + bool, // If the health of the fallback pad changed + ), ) { let settings = self.settings.lock().unwrap().clone(); let mut state = self.output_state.lock().unwrap(); |