Browse Source

Make audio_acquire() fail if audio_reservation_init() fails.

rd_acquire() is going to assert (or fail) anyway because connection will be NULL.
tags/v1.9.10
Nedko Arnaudov 12 years ago
parent
commit
8f556dac4f
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      dbus/audio_reserve.c

+ 5
- 2
dbus/audio_reserve.c View File

@@ -71,8 +71,11 @@ SERVER_EXPORT bool audio_acquire(const char * device_name)
int ret;

// Open DBus connection first time
if (gReserveCount == 0)
audio_reservation_init();
if (gReserveCount == 0) {
if (audio_reservation_init() != 0) {
return false;
}
}

assert(gReserveCount < DEVICE_MAX);



Loading…
Cancel
Save