Commit dc219af3 authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

Add another comment to the appsrc example about the need-data callback not being mandatory

parent 7734725d
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment