From 950772ab8af782e6597173344746e40593adffa9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 17 Sep 2011 20:10:26 +0200 Subject: output/roar: reorder methods --- src/output/roar_output_plugin.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/output/roar_output_plugin.c b/src/output/roar_output_plugin.c index 96e0d34a5..2707d33ec 100644 --- a/src/output/roar_output_plugin.c +++ b/src/output/roar_output_plugin.c @@ -125,20 +125,6 @@ roar_init(G_GNUC_UNUSED const struct audio_format *audio_format, return self; } -static void -roar_close(void *data) -{ - roar_t * self = data; - g_mutex_lock(self->lock); - self->alive = false; - - if (self->vss != NULL) - roar_vs_close(self->vss, ROAR_VS_TRUE, &(self->err)); - self->vss = NULL; - roar_disconnect(&(self->con)); - g_mutex_unlock(self->lock); -} - static void roar_finish(void *data) { @@ -217,6 +203,20 @@ roar_open(void *data, struct audio_format *audio_format, GError **error) return true; } +static void +roar_close(void *data) +{ + roar_t * self = data; + g_mutex_lock(self->lock); + self->alive = false; + + if (self->vss != NULL) + roar_vs_close(self->vss, ROAR_VS_TRUE, &(self->err)); + self->vss = NULL; + roar_disconnect(&(self->con)); + g_mutex_unlock(self->lock); +} + static void roar_cancel(void *data) { -- cgit v1.2.3