summaryrefslogtreecommitdiffstats
path: root/src/polyp/subscribe.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/polyp/subscribe.c')
-rw-r--r--src/polyp/subscribe.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/polyp/subscribe.c b/src/polyp/subscribe.c
index 65849b6d..a4eadbc6 100644
--- a/src/polyp/subscribe.c
+++ b/src/polyp/subscribe.c
@@ -72,9 +72,7 @@ pa_operation* pa_context_subscribe(pa_context *c, pa_subscription_mask_t m, pa_c
o = pa_operation_new(c, NULL, (pa_operation_cb_t) cb, userdata);
- t = pa_tagstruct_new(NULL, 0);
- pa_tagstruct_putu32(t, PA_COMMAND_SUBSCRIBE);
- pa_tagstruct_putu32(t, tag = c->ctag++);
+ t = pa_tagstruct_command(c, PA_COMMAND_SUBSCRIBE, &tag);
pa_tagstruct_putu32(t, m);
pa_pstream_send_tagstruct(c->pstream, t);
pa_pdispatch_register_reply(c->pdispatch, tag, DEFAULT_TIMEOUT, pa_context_simple_ack_callback, pa_operation_ref(o));