mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-08 08:08:03 +02:00
reserve-device: show info instead of warning when devices could not be acquired
This commit is contained in:
parent
c97eccea16
commit
27fa7ff619
1 changed files with 3 additions and 4 deletions
|
|
@ -43,14 +43,13 @@ static void
|
|||
on_reservation_acquired (GObject *obj, GAsyncResult *res, gpointer user_data)
|
||||
{
|
||||
WpReserveDevice *self = user_data;
|
||||
WpDbusDeviceReservation *reserv = WP_DBUS_DEVICE_RESERVATION (obj);
|
||||
g_autoptr (GError) error = NULL;
|
||||
g_autoptr (GError) e = NULL;
|
||||
g_autoptr (WpProxy) device = NULL;
|
||||
g_autoptr (WpSpaPod) profile = NULL;
|
||||
|
||||
/* Finish */
|
||||
if (!wp_dbus_device_reservation_async_finish (reserv, res, &error)) {
|
||||
g_warning ("%s", error->message);
|
||||
if (!wp_dbus_device_reservation_async_finish (self->reservation, res, &e)) {
|
||||
wp_info_object (self, "could not own device: %s", e->message);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue