[mpp]: add seek reset flow

[h265d]:add seek part code

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@381 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenSiyong
2015-10-15 15:38:34 +00:00
parent ca04000e99
commit 838659a23c
13 changed files with 113 additions and 24 deletions

View File

@@ -260,3 +260,20 @@ MPP_RET Mpp::control(MpiCmd cmd, MppParam param)
return MPP_OK;
}
MPP_RET Mpp::reset()
{
{
Mutex::Autolock autoLock(mPackets->mutex());
mPackets->flush();
}
{
Mutex::Autolock autoLock(mFrames->mutex());
mFrames->flush();
}
mThreadCodec->reset_lock();
mpp_dec_reset(mDec);
mThreadCodec->signal();
mThreadCodec->reset_wait();
mThreadCodec->reset_unlock();
return MPP_OK;
}