Dear tanu,

>There can be only one error at a time, but here you list two errors. In
>what situations these errors happen?

I got two errors at the same point in the stream callback with a state
PA_STREAM_FAILED.
I got the errors by two ways, one is to call only pa_context_errno,
the other is to call pa_context_errno(pa_stream_get_context()).

>Do you possibly create the stream before the context state has changed
>to PA_CONTEXT_READY?

No, I called pa_stream_new and pa_stream_connect_ function in the context
callback with PA_CONTEXT_READY.
I use threaded Main loop function, but I didn't do extra care about
callbacks.
This maybe a cause of this problem, I'll check the code again.

Best Regards,
Shinnosuke Suzuki
2017-10-12 21:43 GMT+09:00 Tanu Kaskinen <ta...@iki.fi>:

> On Thu, 2017-10-12 at 21:13 +0900, Shinnosuke Suzuki wrote:
> > Dear Tanu,
> >
> > Thank you for advice.
> >
> > I didn't resolve my issue, but I got cause of error in stream callback in
> > the
> > PA_STREAM_FAILED state.
> >  pa_context_errno : Access denied
> >  pa_context_errno(pa_stream_get_context) : Invalid argument
>
> There can be only one error at a time, but here you list two errors. In
> what situations these errors happen?
>
> "Access denied" usually means that the program fails authorization, but
> then you wouldn't see the context changing state to PA_CONTEXT_READY.
> Do you possibly create the stream before the context state has changed
> to PA_CONTEXT_READY? I believe that's the only case where stream
> creation could fail with "Access denied".
>
> "Invalid argument" could mean that you're trying to create the stream
> with bad parameters.
>
> --
> Tanu
>
> https://www.patreon.com/tanuk
>



-- 
--
Shinnosuke Suzuki
E-mail : suzuk...@gmail.com
_______________________________________________
pulseaudio-discuss mailing list
pulseaudio-discuss@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss

Reply via email to