<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div id="yui_3_16_0_ym19_1_1539976490389_6373"><span>Hi,</span></div><div id="yui_3_16_0_ym19_1_1539976490389_6374"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6375"><span id="yui_3_16_0_ym19_1_1539976490389_6450">There is a lot of information here : <a href="https://gstreamer.freedesktop.org/documentation/design/index.html" id="yui_3_16_0_ym19_1_1539976490389_6449">https://gstreamer.freedesktop.org/documentation/design/index.html</a><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6424"><span>Most of them are a must read if you are new to GStreamer.<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6425"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6428"><span>There's a page about Event handling.</span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6430"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6464"><span>Cheers,<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6465"><span>Philippe.<br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6426"><span><br></span></div><div dir="ltr" id="yui_3_16_0_ym19_1_1539976490389_6427"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: lucida console, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Le Vendredi 19 octobre 2018 17h51, "Maurer, Marie" <marie.maurer@zeiss.com> a écrit :<br></font></div>  <br><br> <div class="y_msg_container"><div id="yiv4509015314">

 
 
<style><!--
#yiv4509015314  
 _filtered #yiv4509015314 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv4509015314 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
#yiv4509015314  
#yiv4509015314 p.yiv4509015314MsoNormal, #yiv4509015314 li.yiv4509015314MsoNormal, #yiv4509015314 div.yiv4509015314MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", sans-serif;}
#yiv4509015314 a:link, #yiv4509015314 span.yiv4509015314MsoHyperlink
        {color:#0563C1;text-decoration:underline;}
#yiv4509015314 a:visited, #yiv4509015314 span.yiv4509015314MsoHyperlinkFollowed
        {color:#954F72;text-decoration:underline;}
#yiv4509015314 span.yiv4509015314E-MailFormatvorlage17
        {font-family:"Arial", sans-serif;color:windowtext;}
#yiv4509015314 .yiv4509015314MsoChpDefault
        {font-family:"Calibri", sans-serif;}
 _filtered #yiv4509015314 {margin:70.85pt 70.85pt 2.0cm 70.85pt;}
#yiv4509015314 div.yiv4509015314WordSection1
        {}
--></style>

<div>
<div class="yiv4509015314WordSection1">
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;">Hello,</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">can someone give or point me to some info, how event handling is working internally between two element?</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">E.g. end of pipeline contains of a queue and an appsink.</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">… -> queue -> appsink</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Appsink does not want to go to PLAYING state, other elements in this pipeline do it without problems.</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">In result the pipeline itself does not go into PLAYING state.</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">How are states exchanged between elements? How are the neighbor elements connected?
</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Is it all going via some common code inside gstreamer?
</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">So queue is sending state to Gstreamer code and Gstreamer code gives state event to appsink?</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Or is the queue element directly connected to the appsink element?</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">So queue is sending state directly to appsink element?</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Is there some debugging possibility to see why state event is not running through till the end?</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">I have a bushandler which logs state changes for each element and I see my queue is going to PLAYING,</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">but appsink remains in READY, even when pending state is PLAYING.</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">cameraBusFunc  State changed: MyAppSink, oldState=NULL, newState=READY, pendingState=PLAYING</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">cameraBusFunc  State changed: MyQueue, oldState=NULL, newState=READY, pendingState=PLAYING</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">cameraBusFunc  State changed: MyQueue, oldState=READY, newState=PAUSED, pendingState=PLAYING</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">cameraBusFunc  State changed: MyQueue, oldState=PAUSED, newState=PLAYING, pendingState=VOID_PENDING</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">After this nothing more happens…</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Any idea or hint?</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Many thanks!</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Best regards,</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">Marie</span></div> 
<div class="yiv4509015314MsoNormal"><span style="font-size:10.0pt;font-family:sans-serif;" lang="EN-US">  </span></div> 
</div>
</div>
</div>_______________________________________________<br>gstreamer-devel mailing list<br><a ymailto="mailto:gstreamer-devel@lists.freedesktop.org" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br><br><br></div>  </div> </div>  </div></div></body></html>