summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/client.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-01-22 00:15:19 +0100
committerLennart Poettering <lennart@poettering.net>2009-01-22 00:15:19 +0100
commit0f7954a9f5291ba865ff87b6884c16a3014c1b76 (patch)
tree0afd27e5ea9f7562209b4c4bab6e4b691d5d3c80 /src/pulsecore/client.c
parentbf7217b6a5ef2cfd9c3399ba055f5643f89e0375 (diff)
don't include full path in driver name.
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);