media-session: always remember the new route availability

This commit is contained in:
Wim Taymans 2021-02-17 15:48:49 +01:00
parent 76febf1c7f
commit bf062e455a

View file

@ -702,8 +702,6 @@ static int handle_route(struct device *dev, struct route *r)
if (r->available != SPA_PARAM_AVAILABILITY_yes && ri->available != r->available) { if (r->available != SPA_PARAM_AVAILABILITY_yes && ri->available != r->available) {
struct route t; struct route t;
ri->available = r->available;
/* an existing port has changed to unavailable */ /* an existing port has changed to unavailable */
pw_log_info("device %d: route '%s' not available", dev->id, r->name); pw_log_info("device %d: route '%s' not available", dev->id, r->name);
@ -718,6 +716,7 @@ static int handle_route(struct device *dev, struct route *r)
restore = true; restore = true;
} }
} }
ri->available = r->available;
} }
ri->generation = dev->generation; ri->generation = dev->generation;