bluez5: make codec loading compatible with old conf files

Change codec factory names to api.codec.bluez5.*, so that they won't
conflict with old config file lib name rules for api.bluez5.*

Specify the fallback library name when loading the codecs, so that it
works without the rules in config files.
This commit is contained in:
Pauli Virtanen 2021-09-06 17:25:58 +03:00
parent 435de99428
commit b5ad37c7ac
5 changed files with 29 additions and 23 deletions

View file

@ -50,7 +50,7 @@ struct spa_bluez5_codec_a2dp {
const struct a2dp_codec * const *codecs; /**< NULL terminated array */
};
#define A2DP_CODEC_FACTORY_NAME(basename) (SPA_NAME_API_BLUEZ5_CODEC_A2DP "." basename)
#define A2DP_CODEC_FACTORY_NAME(basename) (SPA_NAME_API_CODEC_BLUEZ5_A2DP "." basename)
#ifdef CODEC_PLUGIN
#define A2DP_CODEC_EXPORT_DEF(basename,...) \