diff options
| author | Lennart Poettering <lennart@poettering.net> | 2008-10-05 23:02:25 +0200 | 
|---|---|---|
| committer | Lennart Poettering <lennart@poettering.net> | 2008-10-05 23:02:25 +0200 | 
| commit | 5996f59dd5e13d10da9a2c95f0040e48f7a7696e (patch) | |
| tree | 0b0a5319fba326382db148741cc1d03d95b6f1d5 | |
| parent | f728e9cce060ded8db40b82e02683331252f6cc5 (diff) | |
update module-tunnel for recent protocol changes
| -rw-r--r-- | src/modules/module-tunnel.c | 9 | 
1 files changed, 8 insertions, 1 deletions
diff --git a/src/modules/module-tunnel.c b/src/modules/module-tunnel.c index de3c7274..4bbb11a5 100644 --- a/src/modules/module-tunnel.c +++ b/src/modules/module-tunnel.c @@ -159,7 +159,7 @@ static const pa_pdispatch_cb_t command_table[PA_COMMAND_MAX] = {      [PA_COMMAND_PLAYBACK_STREAM_SUSPENDED] = command_suspended,      [PA_COMMAND_RECORD_STREAM_SUSPENDED] = command_suspended,      [PA_COMMAND_PLAYBACK_STREAM_MOVED] = command_moved, -    [PA_COMMAND_RECORD_STREAM_MOVED] = command_moved, +    [PA_COMMAND_RECORD_STREAM_MOVED] = command_moved  };  struct userdata { @@ -1494,6 +1494,13 @@ static void setup_complete_callback(pa_pdispatch *pd, uint32_t command, uint32_t  #endif      } +    if (u->version >= 14) { +#ifdef TUNNEL_SINK +        pa_tagstruct_put_boolean(reply, FALSE); /* volume_set */ +#endif +        pa_tagstruct_put_boolean(reply, TRUE); /* early rquests */ +    } +      pa_pstream_send_tagstruct(u->pstream, reply);      pa_pdispatch_register_reply(u->pdispatch, tag, DEFAULT_TIMEOUT, create_stream_callback, u, NULL);  | 
