mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
names: add standard factory name definitions
Define a set of standard factory names and document what they contain. This makes it possible to change the implementation by mapping the factory-name to a different shared library.
This commit is contained in:
parent
4494f9c7c9
commit
6720ded529
40 changed files with 188 additions and 55 deletions
|
|
@ -106,10 +106,10 @@ int spa_handle_factory_enum(const struct spa_handle_factory **factory, uint32_t
|
|||
return 0;
|
||||
|
||||
if (av_codec_is_encoder(c)) {
|
||||
snprintf(name, 128, "ffenc_%s", c->name);
|
||||
snprintf(name, 128, "encoder.%s", c->name);
|
||||
f.init = ffmpeg_enc_init;
|
||||
} else {
|
||||
snprintf(name, 128, "ffdec_%s", c->name);
|
||||
snprintf(name, 128, "decoder.%s", c->name);
|
||||
f.init = ffmpeg_dec_init;
|
||||
}
|
||||
f.name = name;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue