[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

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