Skip to content

Commit

Permalink
[mpp_enc]: Fix stuck on reset async mode encoder
Browse files Browse the repository at this point in the history
Change-Id: I11ff972d9dccd81ea4d274443c920710379f1aff
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
  • Loading branch information
HermanChen committed Mar 14, 2022
1 parent c07169d commit 8a85dc5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mpp/mpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,9 @@ MPP_RET Mpp::reset()
mFrmOut->flush();
mFrmOut->unlock();
} else {
mFrmIn->lock();
mFrmIn->flush();
mFrmIn->unlock();
mFrmOut->lock();
mFrmOut->flush();
mFrmOut->unlock();
Expand All @@ -929,6 +932,9 @@ MPP_RET Mpp::reset()
mPktIn->lock();
mPktIn->flush();
mPktIn->unlock();
mPktOut->lock();
mPktOut->flush();
mPktOut->unlock();
}

return MPP_OK;
Expand Down

0 comments on commit 8a85dc5

Please sign in to comment.