<div dir="ltr">I keep running across this example <a href="https://gist.github.com/nzjrs/725122/16ceee88aafae389bab207818e0661328921e1ab">https://gist.github.com/nzjrs/725122/16ceee88aafae389bab207818e0661328921e1ab</a><div>however this is for gstreamer 0.10 are there elements of the example that are still usefull?</div><div><br></div><div>lines 152/153 do the following set up the start and stop call backs</div><div><div>g_signal_connect (app->appsrc, "need-data", G_CALLBACK (start_feed), app);</div><div>g_signal_connect (app->appsrc, "enough-data", G_CALLBACK (stop_feed), app);</div></div><div><br></div><div><br></div><div>the start feed sets up the idle processing ... </div><div>

<span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">app->sourceid = </span><span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">g_idle_add</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"> ((GSourceFunc) read_data, app);</span>

<br></div><div>which then calls read_data?</div><div>Would this be similar in gstreamer 1.0 ?</div><div><br></div><div>James</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 27, 2018 at 12:38 AM, Thornton, Keith <span dir="ltr"><<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="DE" link="blue" vlink="purple">
<div class="m_-7150963042261394941WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Arial",sans-serif">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.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> gstreamer-devel [mailto:<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" target="_blank">gstreamer-devel-<wbr>bounces@lists.freedesktop.org</a>]
<b>Im Auftrag von </b>blackthirt33n .<br>
<b>Gesendet:</b> Montag, 26. März 2018 17:55<br>
<b>An:</b> Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>><br>
<b>Betreff:</b> appsrc in push vs pull mode<u></u><u></u></span></p><span class="">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">what does this mean " <span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black;background:white">
appsrc in push vs pull mode" as spoken of in the thread in the article </span><u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black;background:white"><a href="http://gstreamer-devel.966125.n4.nabble.com/appsrc-usage-push-and-pull-mode-td4662768.html" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/appsrc-usage-<wbr>push-and-pull-mode-td4662768.<wbr>html</a></span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:black;background:white">James</span><u></u><u></u></p>
</div>
</div>
</span></div>
</div>

<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>