<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Not receiving READY->NULL state
      change messages is normal as the GstBus attached to the pipeline
      is set to flushing to avoid reference cycles.<br>
      <br>
      Cheers<br>
      -Matt<br>
      <br>
      On 8/5/19 12:05 pm, Halley Zhao wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJ1_6NAEs4_T=BPZXKscVcXTOaZWWf7UPBDXWAaY-b=4q1DmWg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div>Hi experts:</div>
                <div>I want to do cleanup after pipeline changed to
                  GST_STATE_NULL. however I
                  received GST_MESSAGE_STATE_CHANGED with newstate
                  of GST_STATE_NULL of its children element, but not the
                  pipeline itself.</div>
                <div><br>
                </div>
                <div>I don't know whether there is something wrong in my
                  code, or it is by design?</div>
                <div>my pipeline contains
                  "appsrc-->h264parse-->videodecode-->appsink".
                  here is my log:</div>
                <div>the source code sees attachment</div>
                <div><br>
                </div>
                <div>
                  <div>(cb_need_data, 148)emit eos signal</div>
                  <div>(bus_call, 61)End of stream</div>
                  <div><br>
                  </div>
                  <div>(bus_call, 84)my_sink state change, old state:
                    PLAYING, new state: PAUSED</div>
                  <div>(bus_call, 84)my_vdec state change, old state:
                    PLAYING, new state: PAUSED</div>
                  <div>(bus_call, 84)my_h264parse state change, old
                    state: PLAYING, new state: PAUSED</div>
                  <div>(bus_call, 84)my_appsrc state change, old state:
                    PLAYING, new state: PAUSED</div>
                  <div>(bus_call, 84)my_pipeline state change, old
                    state: PLAYING, new state: PAUSED</div>
                  <div>(bus_call, 84)my_sink state change, old state:
                    PAUSED, new state: READY</div>
                  <div>(bus_call, 84)my_vdec state change, old state:
                    PAUSED, new state: READY</div>
                  <div>(bus_call, 84)my_h264parse state change, old
                    state: PAUSED, new state: READY</div>
                  <div>(bus_call, 84)my_appsrc state change, old state:
                    PAUSED, new state: READY</div>
                  <div>(bus_call, 84)my_pipeline state change, old
                    state: PAUSED, new state: READY</div>
                  <div>(bus_call, 84)my_sink state change, old state:
                    READY, new state: NULL</div>
                  <div>(bus_call, 84)my_vdec state change, old state:
                    READY, new state: NULL</div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>