GstPushSrc create method

Tim Müller tim at centricular.com
Fri May 8 10:51:49 UTC 2020


On Thu, 2020-05-07 at 16:49 +0000, Dass, Reena A Collins wrote:

Hi Reena,

> I’ve developed a plugin based on GstPushSrc. My pipeline has this
> source plugin, a transform plugin and a sink plugin. The pipe is
> running in a loop but I want to control when the create method is
> called. How do I set that up?

Why do you want to or need to control that?

Could you provide some more context about what you're trying to achieve
exactly? (big picture)

What kind of source element is it? (audio, video, something else)

Is it a live source? Where does your data come from? Can it be produced
on demand or do you have to wait for it or is it produced in regular
intervals (e.g. at X fps)?

The create method will typically be called whenever a new buffer is
needed, which is typically when downstream (transform ! sink) are done
with the previous buffer and give control back to the source. Assuming
there are no queues in between.

Cheers
 Tim


-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list