<div dir="ltr">For some sparse streams, my video sink element fails to do prerolling because there is too much audio data in the stream which stalls the demux and the complete pipeline stuck .I am trying to notify the application when first buffer is received on demux's video source pad, so that application can lock video pad and change the state for audio, which will make room in demux to process more data to complete the prerolling for video sink.<div>
<br></div><div>Do you see some other solution for this problem?</div><div><br></div><div>Thanks,</div><div>Yogesh</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 13, 2014 at 5:28 PM, Thiago Santos <span dir="ltr"><<a href="mailto:ts.santos@sisa.samsung.com" target="_blank">ts.santos@sisa.samsung.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 05/08/2014 11:30 PM, Yogesh Tyagi
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px"> If I
add a probe to src pad of my element and emit a signal from
this probe handler which will be received by the
application.Upon receiving this signal, application is
supposed to do state change of this element.</div>
<div style="font-family:arial,sans-serif;font-size:13px">Will it
be a valid implementation? Does g_signal_emit or signal
handler(in application) run in pipeline context?</div>
</div>
</blockquote></div>
Can you describe what you are trying to do from high level? It would
help coming up with a proper solution. Why do you need to change
state when first buffer is received?<br>
<br>
And to answer your question, the signal emission happens from the
thread that does it, so it would be done from a thread from the
pipeline and it usually isn't safe to perform state changes from it.<div><div class="h5"><br>
<br>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family:arial,sans-serif;font-size:13px">
<br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px">Thanks,</div>
<div style="font-family:arial,sans-serif;font-size:13px">Yogesh</div>
</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Fri, May 9, 2014 at 5:42 AM, Luis de
Bethencourt <span dir="ltr"><<a href="mailto:luis@debethencourt.com" target="_blank">luis@debethencourt.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Yogesh,<br>
<br>
You could use a gst_pad_add_probe () to be notified of the
change you are looking for in the element's video source
pad. <br>
<br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstPadProbeType" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPad.html#GstPadProbeType</a>
<div>
<br>
</div>
<div>Hope this helps,</div>
<div>Luis<br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">
<div>
<div>On 8 May 2014 14:18, Yogesh Tyagi
<span dir="ltr"><<a href="mailto:yogesh.bit2006@gmail.com" target="_blank">yogesh.bit2006@gmail.com</a>></span>
wrote:<br>
</div>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div>
<div>
<div dir="ltr">I want to notify the
application when first buffer is received on
video source pad of my demux element.
<div>
<br>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Yogesh</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, May 8,
2014 at 6:36 PM, Yogesh Tyagi <span dir="ltr"><<a href="mailto:yogesh.bit2006@gmail.com" target="_blank">yogesh.bit2006@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">Hi,
<div><br>
</div>
<div>What is best mechanism for
application and element
interaction in gstreamer?</div>
<div><br>
</div>
<div>Thanks,</div>
<div>Yogesh</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
</div>
</div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
gstreamer-devel mailing list
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
</font></span></div>
<br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>