mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: Change A2DP codec API of reset() method to indicate failure
SBC codec reset() method may fail, so propagate this failure to caller.
This commit is contained in:
parent
018b38ec39
commit
064277b4ee
3 changed files with 18 additions and 10 deletions
|
|
@ -69,8 +69,9 @@ typedef struct pa_a2dp_codec {
|
|||
void *(*init)(bool for_encoding, bool for_backchannel, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec);
|
||||
/* Deinitialize and release codec info data in codec_info */
|
||||
void (*deinit)(void *codec_info);
|
||||
/* Reset internal state of codec info data in codec_info */
|
||||
void (*reset)(void *codec_info);
|
||||
/* Reset internal state of codec info data in codec_info, returns
|
||||
* a negative value on failure */
|
||||
int (*reset)(void *codec_info);
|
||||
|
||||
/* Get read block size for codec, it is minimal size of buffer
|
||||
* needed to decode read_link_mtu bytes of encoded data */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue