mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
bluez-monitor: Propagate the msbc-support global property to device
msbc-support global property can be used for all backends, or for native backend overloaded on a per device rule.
This commit is contained in:
parent
fa3bd6b0e1
commit
07c9dbbffa
2 changed files with 12 additions and 5 deletions
|
|
@ -395,7 +395,7 @@ static struct device *bluez5_create_device(struct impl *impl, uint32_t id,
|
|||
struct spa_handle *handle;
|
||||
int res;
|
||||
void *iface;
|
||||
const char *rules;
|
||||
const char *rules, *str;
|
||||
|
||||
pw_log_debug("new device %u", id);
|
||||
|
||||
|
|
@ -421,6 +421,12 @@ static struct device *bluez5_create_device(struct impl *impl, uint32_t id,
|
|||
if ((rules = pw_properties_get(impl->conf, "rules")) != NULL)
|
||||
sm_media_session_match_rules(rules, strlen(rules), device->props);
|
||||
|
||||
/* Propagate the msbc-support global property if it exists and is not
|
||||
* overloaded by a device specific one */
|
||||
if ((str = pw_properties_get(impl->props, "bluez5.msbc-support")) != NULL &&
|
||||
pw_properties_get(device->props, "bluez5.msbc-support") == NULL)
|
||||
pw_properties_set(device->props, "bluez5.msbc-support", str);
|
||||
|
||||
handle = pw_context_load_spa_handle(context,
|
||||
info->factory_name,
|
||||
&device->props->dict);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue