mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
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:
parent
f2bd2ef6fb
commit
de5a85d808
2 changed files with 18 additions and 0 deletions
|
|
@ -458,6 +458,14 @@ impl_get_interface(struct spa_handle *handle, const char *type, void **interface
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
impl_clear(struct spa_handle *handle)
|
||||||
|
{
|
||||||
|
spa_return_val_if_fail(handle != NULL, -EINVAL);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
spa_ffmpeg_dec_get_size(const struct spa_handle_factory *factory, const struct spa_dict *params)
|
spa_ffmpeg_dec_get_size(const struct spa_handle_factory *factory, const struct spa_dict *params)
|
||||||
{
|
{
|
||||||
|
|
@ -474,6 +482,7 @@ spa_ffmpeg_dec_init(struct spa_handle *handle,
|
||||||
struct port *port;
|
struct port *port;
|
||||||
|
|
||||||
handle->get_interface = impl_get_interface;
|
handle->get_interface = impl_get_interface;
|
||||||
|
handle->clear = impl_clear;
|
||||||
|
|
||||||
this = (struct impl *) handle;
|
this = (struct impl *) handle;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -437,6 +437,14 @@ impl_get_interface(struct spa_handle *handle, const char *type, void **interface
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
impl_clear(struct spa_handle *handle)
|
||||||
|
{
|
||||||
|
spa_return_val_if_fail(handle != NULL, -EINVAL);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
size_t
|
size_t
|
||||||
spa_ffmpeg_enc_get_size(const struct spa_handle_factory *factory, const struct spa_dict *params)
|
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;
|
struct port *port;
|
||||||
|
|
||||||
handle->get_interface = impl_get_interface;
|
handle->get_interface = impl_get_interface;
|
||||||
|
handle->clear = impl_clear;
|
||||||
|
|
||||||
this = (struct impl *) handle;
|
this = (struct impl *) handle;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue