summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pulsecore/client.c')
-rw-r--r--src/pulsecore/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/client.c b/src/pulsecore/client.c
index 1e65fcd9..18004412 100644
--- a/src/pulsecore/client.c
+++ b/src/pulsecore/client.c
@@ -29,6 +29,7 @@
#include <string.h>
#include <pulse/xmalloc.h>
+#include <pulse/util.h>
#include <pulsecore/core-subscribe.h>
#include <pulsecore/log.h>
@@ -64,7 +65,7 @@ pa_client *pa_client_new(pa_core *core, pa_client_new_data *data) {
c = pa_xnew(pa_client, 1);
c->core = core;
c->proplist = pa_proplist_copy(data->proplist);
- c->driver = pa_xstrdup(data->driver);
+ c->driver = pa_xstrdup(pa_path_get_filename(data->driver));
c->module = data->module;
c->sink_inputs = pa_idxset_new(NULL, NULL);