summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/card.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/card.c
parentbf7217b6a5ef2cfd9c3399ba055f5643f89e0375 (diff)
don't include full path in driver name.
Diffstat (limited to 'src/pulsecore/card.c')
-rw-r--r--src/pulsecore/card.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/card.c b/src/pulsecore/card.c
index 397c6d7a..ac9e6d9f 100644
--- a/src/pulsecore/card.c
+++ b/src/pulsecore/card.c
@@ -28,6 +28,7 @@
#include <string.h>
#include <pulse/xmalloc.h>
+#include <pulse/util.h>
#include <pulsecore/log.h>
#include <pulsecore/macro.h>
@@ -128,7 +129,7 @@ pa_card *pa_card_new(pa_core *core, pa_card_new_data *data) {
c->core = core;
c->name = pa_xstrdup(data->name);
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->sinks = pa_idxset_new(NULL, NULL);