fix device reservation for system mode

This commit is contained in:
Lennart Poettering 2009-03-03 22:26:15 +01:00
parent 0329edd179
commit f3de61edf6
3 changed files with 9 additions and 2 deletions

View file

@ -164,6 +164,9 @@ static int reserve_init(struct userdata *u, const char *dname) {
if (u->reserve)
return 0;
if (pa_in_system_mode())
return 0;
/* We are resuming, try to lock the device */
if (!(rname = pa_alsa_get_reserve_name(dname)))
return 0;