mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-19 07:24:34 +08:00
[mpp]: Combine block control and timeout control
Use MppPollType as block control MPP_SET_INPUT_TIMEOUT and MPP_SET_OUTPUT_TIMEOUT 's parameter. Deprecate old block/block_timeout control. Next step is to change MppPollType to RK_S64 for compatible in different platform. Change-Id: I02974f0b8eeb23ff43687448d6c3271ea7dd0a2c Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
@@ -45,7 +45,7 @@ int mpi_test()
|
||||
|
||||
MpiCmd cmd = MPP_CMD_BASE;
|
||||
MppParam param = NULL;
|
||||
RK_U32 output_block = 1;
|
||||
MppPollType block = MPP_POLL_BLOCK;
|
||||
|
||||
RK_S32 i;
|
||||
char *buf = NULL;
|
||||
@@ -75,8 +75,8 @@ int mpi_test()
|
||||
}
|
||||
|
||||
// NOTE: decoder do not need control function
|
||||
cmd = MPP_SET_OUTPUT_BLOCK;
|
||||
param = &output_block;
|
||||
cmd = MPP_SET_OUTPUT_TIMEOUT;
|
||||
param = █
|
||||
ret = mpi->control(ctx, cmd, param);
|
||||
if (MPP_OK != ret) {
|
||||
mpp_err("mpi->control failed\n");
|
||||
|
Reference in New Issue
Block a user