From: Colin Guthrie Date: Sun, 20 Mar 2011 14:09:14 +0000 (+0000) Subject: tunnel: Fix tunnel streams with recent servers X-Git-Tag: 1.0_branch~688 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=36e7f8a92e8b340dd4034a39a655ba93bcd41886;p=profile%2Fivi%2Fpulseaudio.git tunnel: Fix tunnel streams with recent servers Prompted by bug #750. Thanks to Emil Renner Berthing for the original patch. --- diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c index af1bb95..65fb67d 100644 --- a/src/modules/module-tunnel.c +++ b/src/modules/module-tunnel.c @@ -1685,6 +1685,14 @@ static void setup_complete_callback(pa_pdispatch *pd, uint32_t command, uint32_t pa_tagstruct_put_boolean(reply, FALSE); /* fail on suspend */ } +#ifdef TUNNEL_SINK + if (u->version >= 17) + pa_tagstruct_put_boolean(reply, FALSE); /* relative volume */ + + if (u->version >= 18) { + pa_tagstruct_put_boolean(reply, FALSE); /* passthough stream */ +#endif + pa_pstream_send_tagstruct(u->pstream, reply); pa_pdispatch_register_reply(u->pdispatch, tag, DEFAULT_TIMEOUT, create_stream_callback, u, NULL);