mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
don't include full path in driver name.
This commit is contained in:
parent
bf7217b6a5
commit
0f7954a9f5
6 changed files with 12 additions and 6 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue