mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 01:52:46 +08:00
[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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user