<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The client has not a chance to provide data, when absolute offset is used in a stream without prebuffering and underrun happend for long time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103103#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - The client has not a chance to provide data, when absolute offset is used in a stream without prebuffering and underrun happend for long time"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=103103">bug 103103</a>
              from <span class="vcard"><a class="email" href="mailto:mkid.dev@gmail.com" title="mkid.dev@gmail.com">mkid.dev@gmail.com</a>
</span></b>
        <pre>Overflow will be a result of pa_stream_write() calls to "catch" value returned
by pa_stream_writable_size(), after not providing data for 30 s. From
documentation of pa_stream_writeable_size(): "It is possible to write more than
this amount, up to the stream's buffer_attr.maxlength bytes. This is usually
not desirable, though, as it would increase stream latency to be higher than
requested (buffer_attr.tlength)" it seems that pa_stream_writable_size() should
always be less than buffer_attr.maxlength (for != -1 case).

Currently attached test program does not correctly calculate offset after long
gap (the program starts to write in offset, which was already played). It is
enough to see problem with overflow (please see attached png image), but has to
be fixed to show that my "fixes" can fix something. I will try to provide fixed
program in near future.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>