ref: 6f15550b9e30f0acd813b1fd551f027946384475
parent: 222c84c19381a8fd2185f8a2c051984639a06af7
parent: eaf4798119c7e94cc54710dcadf0fa589aeb3aa1
author: huili2 <[email protected]>
date: Fri Nov 20 03:35:33 EST 2015
Merge pull request #2261 from mstorsjo/fix-test-init-uninit Fix DecoderInterfaceTest::TestInitUninit()
--- a/test/decoder/DecUT_DecExt.cpp
+++ b/test/decoder/DecUT_DecExt.cpp
@@ -203,8 +203,12 @@
EXPECT_EQ (eRet, cmInitExpected);
}
//Initialize first, can get input color format
+ Init();
m_sDecParam.bParseOnly = false;
m_pDec->Initialize (&m_sDecParam);
+ eRet = (CM_RETURN) m_pDec->GetOption (DECODER_OPTION_END_OF_STREAM, &iOutput);
+ EXPECT_EQ (eRet, cmResultSuccess);
+ EXPECT_EQ (iOutput, 0);
//Uninitialize, no GetOption can be done
m_pDec->Uninitialize();