summaryrefslogtreecommitdiff
path: root/spa/plugins/volume/volume.c
diff options
context:
space:
mode:
authorWim Taymans <wtaymans@redhat.com>2016-10-24 15:30:15 +0200
committerWim Taymans <wtaymans@redhat.com>2016-10-24 15:30:15 +0200
commitd3dd90bb05f433f72117fa52c465fbedea59491c (patch)
treec17f659fd14272fcf67eee8474b188df4781e95e /spa/plugins/volume/volume.c
parent0373f73bacd91aaf2dd7d9c1f9812fd17086afae (diff)
simplify events and commands
Diffstat (limited to 'spa/plugins/volume/volume.c')
-rw-r--r--spa/plugins/volume/volume.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/spa/plugins/volume/volume.c b/spa/plugins/volume/volume.c
index a84f5fa3..0a193b95 100644
--- a/spa/plugins/volume/volume.c
+++ b/spa/plugins/volume/volume.c
@@ -521,15 +521,13 @@ find_free_buffer (SpaVolume *this, SpaVolumePort *port)
static void
release_buffer (SpaVolume *this, SpaBuffer *buffer)
{
- SpaNodeEvent event;
SpaNodeEventReuseBuffer rb;
- event.type = SPA_NODE_EVENT_TYPE_REUSE_BUFFER;
- event.data = &rb;
- event.size = sizeof (rb);
+ rb.event.type = SPA_NODE_EVENT_TYPE_REUSE_BUFFER;
+ rb.event.size = sizeof (rb);
rb.port_id = 0;
rb.buffer_id = buffer->id;
- this->event_cb (&this->node, &event, this->user_data);
+ this->event_cb (&this->node, &rb.event, this->user_data);
}
static SpaResult