mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -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
|
|
@ -32,6 +32,7 @@
|
|||
#include <pulse/utf8.h>
|
||||
#include <pulse/xmalloc.h>
|
||||
#include <pulse/timeval.h>
|
||||
#include <pulse/util.h>
|
||||
|
||||
#include <pulsecore/sink-input.h>
|
||||
#include <pulsecore/namereg.h>
|
||||
|
|
@ -184,7 +185,7 @@ pa_sink* pa_sink_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