mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
bluez5: support and use old api.bluez5.a2dp.* factory names for A2DP
For backward compatibility with old Wireplumber releases, support the old api.bluez5.a2dp.sink/source names, and use them in object events instead of the media.sink/source names.
This commit is contained in:
parent
101287159e
commit
8de03f5c29
5 changed files with 36 additions and 6 deletions
|
|
@ -33,6 +33,8 @@ extern const struct spa_handle_factory spa_media_sink_factory;
|
|||
extern const struct spa_handle_factory spa_media_source_factory;
|
||||
extern const struct spa_handle_factory spa_sco_sink_factory;
|
||||
extern const struct spa_handle_factory spa_sco_source_factory;
|
||||
extern const struct spa_handle_factory spa_a2dp_sink_factory;
|
||||
extern const struct spa_handle_factory spa_a2dp_source_factory;
|
||||
|
||||
SPA_EXPORT
|
||||
int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t *index)
|
||||
|
|
@ -59,6 +61,12 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
|
|||
case 5:
|
||||
*factory = &spa_sco_source_factory;
|
||||
break;
|
||||
case 6:
|
||||
*factory = &spa_a2dp_sink_factory;
|
||||
break;
|
||||
case 7:
|
||||
*factory = &spa_a2dp_source_factory;
|
||||
break;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue