summaryrefslogtreecommitdiffstats
path: root/src/polyp/subscribe.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-23 01:24:16 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-23 01:24:16 +0000
commitcb59817b4a2e1f640bd9279d0c7863e7a09c1fa6 (patch)
treea2999fd49b1310a0bc0271eb8003753a9c58de45 /src/polyp/subscribe.c
parent57713350d7fc3c39c44aecd02c2eda6ff2041cb4 (diff)
simplify tagstruct creation
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@573 fefdeb5f-60dc-0310-8127-8f9354f1896f
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));