mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04: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
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
|
||||
#include <pulse/utf8.h>
|
||||
#include <pulse/xmalloc.h>
|
||||
#include <pulse/util.h>
|
||||
|
||||
#include <pulsecore/sample-util.h>
|
||||
#include <pulsecore/core-subscribe.h>
|
||||
|
|
@ -229,7 +230,7 @@ pa_sink_input* pa_sink_input_new(
|
|||
i->state = PA_SINK_INPUT_INIT;
|
||||
i->flags = flags;
|
||||
i->proplist = pa_proplist_copy(data->proplist);
|
||||
i->driver = pa_xstrdup(data->driver);
|
||||
i->driver = pa_xstrdup(pa_path_get_filename(data->driver));
|
||||
i->module = data->module;
|
||||
i->sink = data->sink;
|
||||
i->client = data->client;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include <pulse/utf8.h>
|
||||
#include <pulse/xmalloc.h>
|
||||
#include <pulse/util.h>
|
||||
|
||||
#include <pulsecore/sample-util.h>
|
||||
#include <pulsecore/core-subscribe.h>
|
||||
|
|
@ -192,7 +193,7 @@ pa_source_output* pa_source_output_new(
|
|||
o->state = PA_SOURCE_OUTPUT_INIT;
|
||||
o->flags = flags;
|
||||
o->proplist = pa_proplist_copy(data->proplist);
|
||||
o->driver = pa_xstrdup(data->driver);
|
||||
o->driver = pa_xstrdup(pa_path_get_filename(data->driver));
|
||||
o->module = data->module;
|
||||
o->source = data->source;
|
||||
o->client = data->client;
|
||||
|
|
|
|||
|
|
@ -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