[pulseaudio-discuss] A few questions about termination

Lennart Poettering lennart at poettering.net
Fri Jul 24 05:28:07 PDT 2009


On Fri, 24.07.09 14:10, Andreas Öman (andreas at lonelycoder.com) wrote:

>
> Lennart Poettering wrote:
>> On Fri, 24.07.09 11:17, Andreas Öman (andreas at lonelycoder.com) wrote:
>>
>>> Second, If I chose 'terminate' from pavucontrol on my application's
>>> stream the app receives an PA_STREAM_FAILED event. I would expect
>>> it to be PA_STREAM_TERMINATED.
>>
>> The PA_STREAM_TERMINATED state is only entered if you locally
>> terminate a stream by calling pa_stream_disconnect(). Any error or
>> externally triggered state change is forwarded to you as a
>> PA_STREAM_FAILED state.
>
> Ok, so my mediaplayer's current behavior is to pause playback
> when the PA_STREAM_FAILED event occurs and upon a users request
> to unpause playback it will try to create a new stream.
> Does this make sense?

I guess it does. However, it might make sense to show the error that
happened if the error code is != PA_ERR_KILLED, i.e. pa_strerror(pa_context_errno(c)).

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list