]> code.delx.au - pulseaudio/commitdiff
update module-tunnel for recent protocol changes
authorLennart Poettering <lennart@poettering.net>
Sun, 5 Oct 2008 21:02:25 +0000 (23:02 +0200)
committerLennart Poettering <lennart@poettering.net>
Sun, 5 Oct 2008 21:02:25 +0000 (23:02 +0200)
src/modules/module-tunnel.c

index de3c7274a10cdc716c21d05a4b1ec86e0130f5c9..4bbb11a5a7266a0794d2ebd10d8ea73d3f80ee49 100644 (file)
@@ -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);