spa: ffmpeg: implement spa_handle_factory::get_size

This method is necessary for the creation of a handle,
so implement it for both the encoder and decoder.
This commit is contained in:
Barnabás Pőcze 2022-06-16 17:18:19 +02:00
parent 6cb8fb899d
commit f2bd2ef6fb
4 changed files with 18 additions and 0 deletions

View file

@ -437,6 +437,12 @@ impl_get_interface(struct spa_handle *handle, const char *type, void **interface
return 0;
}
size_t
spa_ffmpeg_enc_get_size(const struct spa_handle_factory *factory, const struct spa_dict *params)
{
return sizeof(struct impl);
}
int
spa_ffmpeg_enc_init(struct spa_handle *handle,
const struct spa_dict *info,