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:
Guillaume Desmottes 2024-07-30 10:47:15 +02:00 committed by Backport Bot
parent da8c41c6fb
commit a7a6229718

View file

@ -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();
} }