tinycompress: plugin: Set codec params in SETUP state
Allow codec params to be set in COMPRESS_PLUG_SETUP state as well. CRs-Fixed: 3023915 Change-Id: Ic1f93628c9fa325653cbd65a0cc827310276f81d
This commit is contained in:
parent
14215fe64e
commit
1eb2e5bf3b
1 changed files with 2 additions and 1 deletions
|
@ -86,7 +86,8 @@ static int compress_plug_set_params(struct compress_plug_data *plug_data,
|
|||
|
||||
if (plugin->state == COMPRESS_PLUG_STATE_RUNNING)
|
||||
return plugin->ops->set_params(plugin, params);
|
||||
else if (plugin->state != COMPRESS_PLUG_STATE_OPEN)
|
||||
else if (plugin->state != COMPRESS_PLUG_STATE_OPEN &&
|
||||
plugin->state != COMPRESS_PLUG_STATE_SETUP)
|
||||
return -EBADFD;
|
||||
|
||||
if (params->buffer.fragment_size == 0 ||
|
||||
|
|
Loading…
Reference in a new issue