mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 17:46:50 +08:00
[mpi]: remove redundant code
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@543 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
10
mpp/mpi.cpp
10
mpp/mpi.cpp
@@ -170,11 +170,6 @@ static MPP_RET mpi_reset(MppCtx ctx)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (NULL == p || p->check != p || NULL == p->ctx) {
|
|
||||||
mpp_err_f("found invalid context input ctx %p\n", ctx);
|
|
||||||
return MPP_ERR_UNKNOW;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = p->ctx->reset();
|
ret = p->ctx->reset();
|
||||||
|
|
||||||
MPI_FUNCTION_LEAVE();
|
MPI_FUNCTION_LEAVE();
|
||||||
@@ -190,11 +185,6 @@ static MPP_RET mpi_control(MppCtx ctx, MpiCmd cmd, MppParam param)
|
|||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (NULL == p || p->check != p || NULL == p->ctx) {
|
|
||||||
mpp_err_f("found invalid context input ctx %p\n", ctx);
|
|
||||||
return MPP_ERR_UNKNOW;
|
|
||||||
}
|
|
||||||
|
|
||||||
ret = p->ctx->control(cmd, param);
|
ret = p->ctx->control(cmd, param);
|
||||||
|
|
||||||
MPI_FUNCTION_LEAVE();
|
MPI_FUNCTION_LEAVE();
|
||||||
|
Reference in New Issue
Block a user