From dc219af36ebaf40b1b712cc8f46973dec91171ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 18 May 2018 11:42:24 +0300 Subject: [PATCH] Add another comment to the appsrc example about the need-data callback not being mandatory --- examples/src/bin/appsrc.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/src/bin/appsrc.rs b/examples/src/bin/appsrc.rs index df8326f67..ca6ff3e7b 100644 --- a/examples/src/bin/appsrc.rs +++ b/examples/src/bin/appsrc.rs @@ -60,6 +60,11 @@ fn create_pipeline() -> Result { // Our frame counter, that is stored in the mutable environment // of the closure of the need-data callback + // + // Alternatively we could also simply start a new thread that + // pushes a buffer to the appsrc whenever it wants to, but this + // is not really needed here. It is *not required* to use the + // need-data callback. let mut i = 0; appsrc.set_callbacks( gst_app::AppSrcCallbacks::new()