Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJan Schmidt <jan@centricular.com>2020-12-11 15:44:53 +0300
committerSebastian Dröge <slomo@coaxion.net>2020-12-11 16:02:00 +0300
commitf57ce41e89e99d374b9afc6a512f064d1b1f3489 (patch)
treeb3eb42779ea828b5123d02f9e1cb9ebdef689f90 /utils
parentfddf33d339cef45cfbe8d36180f5dcf4869bbb9c (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.rs14
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();