Skip to content
Snippets Groups Projects
Commit e1809faa authored by Mattijs Korpershoek's avatar Mattijs Korpershoek
Browse files

v4l2_codec2: decode: allow calling reset() from stop state


Right now, the reset() operation just calls stop().

When a client calls stop() followed by reset(), reset() returns a
C2_BAD_STATE error. (since we are already STOPPED).

According to the framework documentation (C2Component.h), reset can *only*
return C2_BAD_STATE when the component is in release state.

Test if we are already STOPPPED and if so, do a no-op by returning C2_OK.

Test: atest VtsHalMediaC2V1_0TargetComponentTest
Change-Id: I4095c0a9db43a017d3476224d33534748e2251f5
Signed-off-by: default avatarMattijs Korpershoek <mkorpershoek@baylibre.com>
parent 5c00f2d1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment