summaryrefslogtreecommitdiff
path: root/plugins/pulse/pulse.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pulse/pulse.c')
-rw-r--r--plugins/pulse/pulse.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/pulse/pulse.c b/plugins/pulse/pulse.c
index ffb92b07..266ea107 100644
--- a/plugins/pulse/pulse.c
+++ b/plugins/pulse/pulse.c
@@ -220,13 +220,12 @@ static void pulse_thread(void *context)
}
char buf[buffer_size];
- deadbeef->mutex_lock(mutex);
pulse_callback (buf, sizeof (buf));
int error;
+ deadbeef->mutex_lock(mutex);
int res = pa_simple_write(s, buf, sizeof (buf), &error);
deadbeef->mutex_unlock(mutex);
- usleep (1000);
if (res < 0)
{