[mpi]: Prepare to change internal poll return

The external mpi poll interface only return zero and non-zero value.
Zero return for success and non-zero return for failure.

But later we will use both zero and positive value to indicate success
return. Now for backward compatibility set all positive return to zero.

Change-Id: Id2969a2fb3f5a61137ffc40d108d29090ba1a998
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2021-03-03 10:08:18 +08:00
parent 9ec098a981
commit 8b5ad54522

View File

@@ -314,6 +314,8 @@ static MPP_RET mpi_poll(MppCtx ctx, MppPortType type, MppPollType timeout)
} }
ret = p->ctx->poll(type, timeout); ret = p->ctx->poll(type, timeout);
if (ret > 0)
ret = MPP_OK;
} while (0); } while (0);
mpi_dbg_func("leave ret %d\n", ret); mpi_dbg_func("leave ret %d\n", ret);