[pulseaudio-discuss] Corking of stream doesnt seem to work

DSK dsk.in.2007 at gmail.com
Fri Sep 21 03:58:03 PDT 2007


Hi,

 I found tht adding an extra check like below helps me solve the problem :

src/pulsecore/protocol-native.c

static int playback_stream_process_msg(pa_msgobject *o, int code,
void*userdata, int64_t offset, pa_memchunk *chunk) {
    playback_stream *s = PLAYBACK_STREAM(o);
    playback_stream_assert_ref(s);

    if (!s->connection)
        return -1;

    switch (code) {
        case PLAYBACK_STREAM_MESSAGE_REQUEST_DATA: {

            pa_tagstruct *t;
            int32_t l = 0;

             if(s->sink_input->state == 3)
             return 0;
........
.......
.......



-- 
Regards,

Dsk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20070921/92a2eab9/attachment.htm>


More information about the pulseaudio-discuss mailing list