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:
Guillaume Desmottes 2024-07-30 10:47:15 +02:00 committed by GStreamer Marge Bot
parent 7be6a9fef4
commit 3dab797c32

View file

@ -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>) {
self.consumers.lock().unwrap().events_to_forward = events_to_forward.into_iter().collect();
}