mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-06 09:36:49 +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)
|
||||
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();
|
||||
|
||||
MPI_FUNCTION_LEAVE();
|
||||
@@ -190,11 +185,6 @@ static MPP_RET mpi_control(MppCtx ctx, MpiCmd cmd, MppParam param)
|
||||
if (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);
|
||||
|
||||
MPI_FUNCTION_LEAVE();
|
||||
|
Reference in New Issue
Block a user