[mpp]: return get_frame error on non-block mode

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@373 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-10-12 23:21:50 +00:00
parent 15dcc0217b
commit eb3236c8d1
2 changed files with 6 additions and 3 deletions

View File

@@ -199,9 +199,10 @@ MPP_RET Mpp::get_frame(MppFrame *frame)
prev = next; prev = next;
} }
} }
*frame = first;
return MPP_OK;
} }
*frame = first; return MPP_NOK;
return MPP_OK;
} }
MPP_RET Mpp::put_frame(MppFrame frame) MPP_RET Mpp::put_frame(MppFrame frame)

View File

@@ -46,6 +46,7 @@ int mpi_test()
MpiCmd cmd = MPP_CMD_BASE; MpiCmd cmd = MPP_CMD_BASE;
MppParam param = NULL; MppParam param = NULL;
RK_U32 output_block = 1;
RK_S32 i; RK_S32 i;
char *buf = NULL; char *buf = NULL;
@@ -71,7 +72,8 @@ int mpi_test()
} }
// NOTE: decoder do not need control function // NOTE: decoder do not need control function
cmd = MPP_SET_OUTPUT_BLOCK;
param = &output_block;
ret = mpi->control(ctx, cmd, param); ret = mpi->control(ctx, cmd, param);
if (MPP_OK != ret) { if (MPP_OK != ret) {
mpp_err("mpi->control failed\n"); mpp_err("mpi->control failed\n");