[mpp_enc_impl]: Add async empty task process

NOTE: Allow MppFrame output with empty MppBuffer.

Change-Id: I4caa1be867d79f68205b276a57ff59a43a102e55
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2022-08-05 10:05:55 +08:00
parent 83ac137ca2
commit 7b380ccab6
2 changed files with 14 additions and 12 deletions

View File

@@ -952,9 +952,8 @@ void *enc_test_output(void *arg)
mpp_assert(frm);
frm_buf = mpp_frame_get_buffer(frm);
mpp_assert(frm_buf);
{
if (frm_buf) {
AutoMutex autolock(list_buf->mutex());
list_buf->add_at_tail(&frm_buf, sizeof(frm_buf));
list_buf->signal();