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