mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-01-31 05:08:16 +00:00
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.
This commit is contained in:
parent
fddf33d339
commit
f57ce41e89
1 changed files with 12 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue