From 0f7954a9f5291ba865ff87b6884c16a3014c1b76 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 22 Jan 2009 00:15:19 +0100 Subject: don't include full path in driver name. --- src/pulsecore/sink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/pulsecore/sink.c') 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 #include #include +#include #include #include @@ -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; -- cgit v1.2.3