summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGravatar Jan D. Behrens <zykure@web.de>2011-03-28 12:50:29 +0200
committerGravatar waker <wakeroid@gmail.com>2011-03-28 21:52:38 +0200
commit21a4bda93772f447598594967d346f8be9371458 (patch)
treef2a5f201d8462ae7bc85f90069318884e2eeca76 /plugins
parentc125bfe570db1f48709120c619533f9316371cb7 (diff)
fixed playback issue in pulseaudio output plugin
Diffstat (limited to 'plugins')
-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 bf2df5fa..2a9ed27a 100644
--- a/plugins/pulse/pulse.c
+++ b/plugins/pulse/pulse.c
@@ -154,7 +154,6 @@ static int pulse_set_spec(ddb_waveformat_t *fmt)
return -1;
}
-
return 0;
}
@@ -187,11 +186,11 @@ static int pulse_setformat (ddb_waveformat_t *fmt)
trace ("pulse_setformat ignored\n");
return 0;
}
- deadbeef->mutex_lock(mutex);
trace ("pulse_setformat %dbit %s %dch %dHz channelmask=%X\n", fmt->bps, fmt->is_float ? "float" : "int", fmt->channels, fmt->samplerate, fmt->channelmask);
int prev_state = state;
pulse_stop ();
+ deadbeef->mutex_lock(mutex);
pulse_set_spec(fmt);
deadbeef->mutex_unlock(mutex);
trace ("new format %dbit %s %dch %dHz channelmask=%X\n", plugin.fmt.bps, plugin.fmt.is_float ? "float" : "int", plugin.fmt.channels, plugin.fmt.samplerate, plugin.fmt.channelmask);