[pulseaudio-discuss] Couldn't get stream from bluetooth headset

Tanu Kaskinen tanuk at iki.fi
Thu Oct 12 12:43:14 UTC 2017


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


More information about the pulseaudio-discuss mailing list