mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-07 10:00:55 +08:00
[test]: change deinit interface, add more detail to mpi_test
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@153 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -160,7 +160,7 @@ MPP_RET mpp_init(MppCtx *ctx, MppApi **mpi)
|
||||
return MPP_OK;
|
||||
}
|
||||
|
||||
MPP_RET mpp_deinit(MppCtx* ctx)
|
||||
MPP_RET mpp_deinit(MppCtx ctx)
|
||||
{
|
||||
MpiImpl *p;
|
||||
MPI_FUNCTION_ENTER();
|
||||
@@ -170,7 +170,7 @@ MPP_RET mpp_deinit(MppCtx* ctx)
|
||||
return MPP_ERR_NULL_PTR;
|
||||
}
|
||||
|
||||
p = (MpiImpl*)*ctx;
|
||||
p = (MpiImpl*)ctx;
|
||||
|
||||
if (p->check != p) {
|
||||
mpp_err("mpp_deinit input invalid MppCtx\n");
|
||||
@@ -179,7 +179,6 @@ MPP_RET mpp_deinit(MppCtx* ctx)
|
||||
|
||||
if (p)
|
||||
mpp_free(p);
|
||||
*ctx = NULL;
|
||||
|
||||
MPI_FUNCTION_LEAVE();
|
||||
return MPP_OK;
|
||||
|
Reference in New Issue
Block a user