Commit 41f252bd authored by AlexandrX Konovalov's avatar AlexandrX Konovalov Committed by Oleg Nabiullin

Replace MFXVideoENCODE_Reset() with equivalent implicit impelementation

parent 45fcf155
......@@ -954,28 +954,6 @@ mfxStatus MFXVideoENCODE_EncodeFrameAsync(mfxSession session, mfxEncodeCtrl *ctr
// THE OTHER ENCODE FUNCTIONS HAVE IMPLICIT IMPLEMENTATION
//
mfxStatus MFXVideoENCODE_Reset(mfxSession session, mfxVideoParam *par)
{
mfxStatus mfxRes;
MFX_CHECK(session, MFX_ERR_INVALID_HANDLE);
MFX_CHECK(session->m_pENCODE, MFX_ERR_NOT_INITIALIZED);
try
{
/* wait until all tasks are processed */
session->m_pScheduler->WaitForTaskCompletion(session->m_pENCODE.get());
/* call the codec's method */
mfxRes = session->m_pENCODE->Reset(par);
}
/* handle error(s) */
catch(...)
{
/* set the default error value */
mfxRes = MFX_ERR_NULL_PTR;
}
return mfxRes;
} // mfxStatus MFXVideoENCODE_Reset(mfxSession session, mfxVideoParam *par)
FUNCTION_RESET_IMPL(ENCODE, Reset, (mfxSession session, mfxVideoParam *par), (par))
FUNCTION_IMPL(ENCODE, GetVideoParam, (mfxSession session, mfxVideoParam *par), (par))
FUNCTION_IMPL(ENCODE, GetEncodeStat, (mfxSession session, mfxEncodeStat *stat), (stat))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment