<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Miguel,</p>
    <p><br>
    </p>
    <p>Happy that this MR could help you with your scenario.</p>
    <p><br>
    </p>
    <p>Regarding your suggestion, I would say that the caller by
      definition should exit if the connection can not be established,
      otherwise you should use the listener option.</p>
    <p><br>
    </p>
    <p>Regards.</p>
    <p><br>
    </p>
    <p>Stéphane<br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 5/17/22 11:34, Miguel Leão via
      gstreamer-devel wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:AM7P191MB0868403C51CD8341DB2B33EFECCE9@AM7P191MB0868.EURP191.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        Hello Stéphane,</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        That seems to be what I need, I will give it a try and get back
        to you later. Thank you very much!</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        In the meantime I am also having troubles with the srtsink, and
        maybe you can help me. I think that there's a bug in the srtsink
        element, as it should not be writing to the buffer if there's no
        session established (in SRT the buffer timestamps are attributed
        according to the session "timestamp").</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        So for example, if I have a pipeline like this:</div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;">gst-launch-1.0 videotestsrc !
          videoconvert ! x265enc tune=zerolatency ! queue ! h265parse
          config-interval=-1 ! mpegtsmux alignment=7 latency=0 ! srtsink
          uri="srt://127.0.0.1:7000?mode=caller" latency=125
          wait-for-connection=false async=false</span><br>
      </div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;">and there's no srtsrc active,
          this pipeline will crash because it's trying to write to the
          buffer without establishing the session.</span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;"><br>
        </span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;">In my opinion, the element should
          discard the buffers until it establishes a connection.</span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;"><br>
        </span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;">Do you know if someone has
          addressed this issue?</span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;"><br>
        </span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;">Thanks in advance.</span></div>
      <div style="font-family: Calibri, Arial, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0);">
        <span style="color: rgb(0, 0, 0); font-family: Whitney,
          "Helvetica Neue", Helvetica, Arial, sans-serif;
          text-align: left; background-color: rgb(255, 255, 255);
          display: inline !important;">Regards,
          <div>Miguel</div>
        </span></div>
      <hr style="display:inline-block;width:98%" tabindex="-1">
      <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
          face="Calibri, sans-serif" color="#000000"><b>From:</b>
          gstreamer-devel
          <a class="moz-txt-link-rfc2396E" href="mailto:gstreamer-devel-bounces@lists.freedesktop.org"><gstreamer-devel-bounces@lists.freedesktop.org></a> on
          behalf of scerveau via gstreamer-devel
          <a class="moz-txt-link-rfc2396E" href="mailto:gstreamer-devel@lists.freedesktop.org"><gstreamer-devel@lists.freedesktop.org></a><br>
          <b>Sent:</b> Monday, May 16, 2022 4:40 PM<br>
          <b>To:</b> Miguel Leão via gstreamer-devel
          <a class="moz-txt-link-rfc2396E" href="mailto:gstreamer-devel@lists.freedesktop.org"><gstreamer-devel@lists.freedesktop.org></a><br>
          <b>Cc:</b> scerveau <a class="moz-txt-link-rfc2396E" href="mailto:scerveau@gmail.com"><scerveau@gmail.com></a><br>
          <b>Subject:</b> Re: SRT persistency</font>
        <div> </div>
      </div>
      <div>
        <p>Hello Miguel,</p>
        <p><br>
        </p>
        <p>There is a pending merge request about this topic. <br>
        </p>
        <p><br>
        </p>
        <p><a class="x_moz-txt-link-freetext moz-txt-link-freetext"
href="https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/967"
            moz-do-not-send="true">https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/967</a></p>
        <p><br>
        </p>
        <p>You can give it a try and let know if this is addressing your
          issue.</p>
        <p><br>
        </p>
        <p>Regards.</p>
        <p><br>
        </p>
        <p>Stéphane.</p>
        <p><br>
        </p>
        <div class="x_moz-cite-prefix">On 5/2/22 16:33, Miguel Leão via
          gstreamer-devel wrote:<br>
        </div>
        <blockquote type="cite">
          <style type="text/css" style="display:none">p
        {margin-top:0;
        margin-bottom:0}</style>
          <div class="x_elementToProof"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            Hello,</div>
          <div class="x_elementToProof"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <br>
          </div>
          <div class="x_elementToProof"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            I am developing SRT pipelines, and I want to be able to stop
            the signal that is being sent to the pipeline and restart
            it. The problem is, when the signal is turned off the
            srtsink sends an EOS signal to the pipeline shutting it
            down. Is there any way to circumvent this or is this
            behaviour standard?</div>
          <div class="x_elementToProof"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            <br>
          </div>
          <div class="x_elementToProof"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            Thanks in advance,</div>
          <div class="x_elementToProof"
            style="font-family:Calibri,Arial,Helvetica,sans-serif;
            font-size:12pt; color:rgb(0,0,0)">
            Miguel</div>
        </blockquote>
      </div>
    </blockquote>
  </body>
</html>