summaryrefslogtreecommitdiffstats
path: root/src/modules/alsa/alsa-source.c
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-02-28 23:45:02 +0000
committerColin Guthrie <cguthrie@mandriva.org>2009-02-28 23:51:12 +0000
commit8fc9b19cb314329487a62a15c523e9778298f1d5 (patch)
tree1dc0554733a81359255b913f60ed496431701d6d /src/modules/alsa/alsa-source.c
parent116b38c972942ccbbb8dae5dc0181da98096a0ce (diff)
Don't assume that device reservation is enabled.
In the case when the alsa 'device' is not a physical card, it wont have an index and thus the reservation name will be NULL and therefore we will not initialise the reservation system. Fixes #498
Diffstat (limited to 'src/modules/alsa/alsa-source.c')
-rw-r--r--src/modules/alsa/alsa-source.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/alsa/alsa-source.c b/src/modules/alsa/alsa-source.c
index 671df3fe..4321c7ff 100644
--- a/src/modules/alsa/alsa-source.c
+++ b/src/modules/alsa/alsa-source.c
@@ -146,7 +146,7 @@ static void reserve_update(struct userdata *u) {
const char *description;
pa_assert(u);
- if (!u->source)
+ if (!u->source || !u->reserve)
return;
if ((description = pa_proplist_gets(u->source->proplist, PA_PROP_DEVICE_DESCRIPTION)))