diff options
Diffstat (limited to 'src/pulsecore/sink.c')
-rw-r--r-- | src/pulsecore/sink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c index bd90cf56..df46a2c4 100644 --- a/src/pulsecore/sink.c +++ b/src/pulsecore/sink.c @@ -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; |