mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +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/1492>
This commit is contained in:
parent
da8c41c6fb
commit
a7a6229718
1 changed files with 1 additions and 1 deletions
|
@ -359,7 +359,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