<div dir="ltr">Dear tanu,<div><br></div><div>>There can be only one error at a time, but here you list two errors. In<br>>what situations these errors happen?<br><div class="gmail_extra"><br></div><div class="gmail_extra">I got two errors at the same point in the stream callback with a state PA_STREAM_FAILED.</div><div class="gmail_extra">I got the errors by two ways, one is to call only pa_context_errno, </div><div class="gmail_extra">the other is to call pa_context_errno(pa_stream_get<wbr>_context()).</div><div class="gmail_extra"><br></div><div class="gmail_extra">>Do you possibly create the stream before the context state has changed<br></div><div class="gmail_extra">>to PA_CONTEXT_READY?<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">No, I called pa_stream_new and pa_stream_connect_ function in the context callback with PA_CONTEXT_READY.</div><div class="gmail_extra">I use threaded Main loop function, but I didn't do extra care about callbacks.</div><div class="gmail_extra">This maybe a cause of this problem, I'll check the code again.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Best Regards,</div><div class="gmail_extra">Shinnosuke Suzuki</div><div class="gmail_extra"><div class="gmail_quote">2017-10-12 21:43 GMT+09:00 Tanu Kaskinen <span dir="ltr"><<a href="mailto:tanuk@iki.fi" target="_blank">tanuk@iki.fi</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span>On Thu, 2017-10-12 at 21:13 +0900, Shinnosuke Suzuki wrote:<br>
> Dear Tanu,<br>
><br>
> Thank you for advice.<br>
><br>
> I didn't resolve my issue, but I got cause of error in stream callback in<br>
> the<br>
> PA_STREAM_FAILED state.<br>
>  pa_context_errno : Access denied<br>
>  pa_context_errno(pa_stream_get<wbr>_context) : Invalid argument<br>
<br>
</span>There can be only one error at a time, but here you list two errors. In<br>
what situations these errors happen?<br>
<br>
"Access denied" usually means that the program fails authorization, but<br>
then you wouldn't see the context changing state to PA_CONTEXT_READY.<br>
Do you possibly create the stream before the context state has changed<br>
to PA_CONTEXT_READY? I believe that's the only case where stream<br>
creation could fail with "Access denied".<br>
<br>
"Invalid argument" could mean that you're trying to create the stream<br>
with bad parameters.<br>
<span class="gmail-m_-5931193352102185458HOEnZb"><font color="#888888"><br>
--<br>
Tanu<br>
<br>
<a href="https://www.patreon.com/tanuk" rel="noreferrer" target="_blank">https://www.patreon.com/tanuk</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail-m_-5931193352102185458gmail_signature">--<br>Shinnosuke Suzuki<br>E-mail : <a href="mailto:suzukisn@gmail.com" target="_blank">suzukisn@gmail.com</a></div>
</div></div></div>