mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-25 11:01:10 +00:00
utils: streamproducer: fix set_forward_events() doc
The events are forwarded from the appsink to the appsrcs. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1489>
This commit is contained in:
parent
7be6a9fef4
commit
3dab797c32
1 changed files with 1 additions and 1 deletions
|
@ -393,7 +393,7 @@ impl StreamProducer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// configure event types the appsrc should forward to all consumers (default: `Eos`).
|
/// configure event types the appsink should forward to all its consumers (default: `Eos`).
|
||||||
pub fn set_forward_events(&self, events_to_forward: impl IntoIterator<Item = gst::EventType>) {
|
pub fn set_forward_events(&self, events_to_forward: impl IntoIterator<Item = gst::EventType>) {
|
||||||
self.consumers.lock().unwrap().events_to_forward = events_to_forward.into_iter().collect();
|
self.consumers.lock().unwrap().events_to_forward = events_to_forward.into_iter().collect();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue