don't include full path in driver name.

This commit is contained in:
Lennart Poettering 2009-01-22 00:15:19 +01:00
parent bf7217b6a5
commit 0f7954a9f5
6 changed files with 12 additions and 6 deletions

View file

@ -31,6 +31,7 @@
#include <pulse/utf8.h>
#include <pulse/xmalloc.h>
#include <pulse/timeval.h>
#include <pulse/util.h>
#include <pulsecore/source-output.h>
#include <pulsecore/namereg.h>
@ -175,7 +176,7 @@ pa_source* pa_source_new(
s->flags = flags;
s->name = pa_xstrdup(name);
s->proplist = pa_proplist_copy(data->proplist);
s->driver = pa_xstrdup(data->driver);
s->driver = pa_xstrdup(pa_path_get_filename(data->driver));
s->module = data->module;
s->card = data->card;