mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2025-01-09 00:35:41 +00:00
Add another comment to the appsrc example about the need-data callback not being mandatory
This commit is contained in:
parent
7734725da1
commit
dc219af36e
1 changed files with 5 additions and 0 deletions
|
@ -60,6 +60,11 @@ fn create_pipeline() -> Result<gst::Pipeline, Error> {
|
|||
|
||||
// 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()
|
||||
|
|
Loading…
Reference in a new issue