appsrc in push vs pull mode

blackthirt33n . jjosburn at gmail.com
Tue Mar 27 16:07:44 UTC 2018


I keep running across this example
https://gist.github.com/nzjrs/725122/16ceee88aafae389bab207818e0661328921e1ab
however this is for gstreamer 0.10 are there elements of the example that
are still usefull?

lines 152/153 do the following set up the start and stop call backs
g_signal_connect (app->appsrc, "need-data", G_CALLBACK (start_feed), app);
g_signal_connect (app->appsrc, "enough-data", G_CALLBACK (stop_feed), app);


the start feed sets up the idle processing ...
app->sourceid = g_idle_add ((GSourceFunc) read_data, app);
which then calls read_data?
Would this be similar in gstreamer 1.0 ?

James

On Tue, Mar 27, 2018 at 12:38 AM, Thornton, Keith <keith.thornton at zeiss.com>
wrote:

> Hi it means that there are two methods of getting the data into your
> pipeline via appsrc. One is that you use the need-data signals. This is
> pull mode. The other is your application calls push_buffer. This is push
> mode.
>
>
>
> *Von:* gstreamer-devel [mailto:gstreamer-devel-
> bounces at lists.freedesktop.org] *Im Auftrag von *blackthirt33n .
> *Gesendet:* Montag, 26. März 2018 17:55
> *An:* Discussion of the development of and with GStreamer <
> gstreamer-devel at lists.freedesktop.org>
> *Betreff:* appsrc in push vs pull mode
>
>
>
> what does this mean " appsrc in push vs pull mode" as spoken of in the
> thread in the article
>
> http://gstreamer-devel.966125.n4.nabble.com/appsrc-usage-
> push-and-pull-mode-td4662768.html
>
> James
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180327/c0262e70/attachment.html>


More information about the gstreamer-devel mailing list