<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 05/08/2014 11:30 PM, Yogesh Tyagi
      wrote:<br>
    </div>
    <blockquote
cite="mid:CADL-HDjDpvBr7WpT0Pi+seGAQsyMMYNnZRmw7k2QLNVye3TaqA@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <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>
    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.<br>
    <br>
    <blockquote
cite="mid:CADL-HDjDpvBr7WpT0Pi+seGAQsyMMYNnZRmw7k2QLNVye3TaqA@mail.gmail.com"
      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 moz-do-not-send="true"
              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 moz-do-not-send="true"
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 class="h5">On 8 May 2014 14:18, Yogesh Tyagi
                        <span dir="ltr"><<a moz-do-not-send="true"
                            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 class="h5">
                          <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
                                      moz-do-not-send="true"
                                      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 moz-do-not-send="true"
                        href="mailto:gstreamer-devel@lists.freedesktop.org"
                        target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
                      <a moz-do-not-send="true"
                        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 moz-do-not-send="true"
              href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
            <a moz-do-not-send="true"
              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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Thiago Sousa Santos
Senior Multimedia Engineer, Open Source Group
Samsung Research America - Silicon Valley</pre>
  </body>
</html>