summaryrefslogtreecommitdiffstats
path: root/src/pulse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulse.c')
-rw-r--r--src/pulse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pulse.c b/src/pulse.c
index 04dc5db..a720231 100644
--- a/src/pulse.c
+++ b/src/pulse.c
@@ -363,6 +363,7 @@ int driver_destroy(ca_context *c) {
int driver_change_device(ca_context *c, char *device) {
ca_return_val_if_fail(c, CA_ERROR_INVALID);
+ ca_return_val_if_fail(c->private, CA_ERROR_STATE);
/* We're happy with any device change. We might however add code
* here eventually to move all currently played back event sounds