Community
cancel
Showing results for 
Search instead for 
Did you mean: 
MyMother
Beginner
47 Views

ResetDecoder

hi,

OS: Ubuntu 12.04

       MediaSamples_Linux_6.0.16043175.175

       MediaServerStudioEssentials2015R6

Platform:  i5-4570S

I found something below was strange.

mfxStatus CDecodingPipeline::ResetDecoder(sInputParams *pParams)
{
    // close decoder
    sts = m_pmfxDEC->Close();
    
    ...

    // init decoder
    sts = m_pmfxDEC->Init(&m_mfxVideoParams);

    ...  ==> why there's no m_pmfxVPP->Close()?? I can find this API was used in another example   

    // init VPP
    sts = m_pmfxVPP->Init(&m_mfxVppVideoParams);
    ...
}

Thanks

0 Kudos
1 Reply
Surbhi_M_Intel
Employee
47 Views

Hi there, 

I believe you are referring to ResetDecoder() in sample_decvpp. I agree that it is strange to not close the VPP function before initializing again. Interestingly, I have not come across an issue where this has caused any errors but it's a good point to get it cleared from the samples team. I will work with and get back to you on this. Let us know if you are seeing any strange behavior of VPP functionality in your pipeline due to this. 

Thanks for bringing our attention to this. 

-Surbhi

Reply