spa: ffmpeg: implement spa_handle::clear

Implement the spa_handle::clear method for both the encoder and decoder.
At the moment, they both do nothing.
This commit is contained in:
Barnabás Pőcze 2022-06-16 17:22:35 +02:00
parent f2bd2ef6fb
commit de5a85d808
2 changed files with 18 additions and 0 deletions

View file

@ -437,6 +437,14 @@ impl_get_interface(struct spa_handle *handle, const char *type, void **interface
return 0;
}
static int
impl_clear(struct spa_handle *handle)
{
spa_return_val_if_fail(handle != NULL, -EINVAL);
return 0;
}
size_t
spa_ffmpeg_enc_get_size(const struct spa_handle_factory *factory, const struct spa_dict *params)
{
@ -452,6 +460,7 @@ spa_ffmpeg_enc_init(struct spa_handle *handle,
struct port *port;
handle->get_interface = impl_get_interface;
handle->clear = impl_clear;
this = (struct impl *) handle;