Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

Call IMFActivate::ActiveObject crash

$
0
0

Hi.  I have a problem on a special PC. A part of code as follow

unFlags = MFT_ENUM_FLAG_HARDWARE;hr = MFTEnumEx(MFT_CATEGORY_VIDEO_ENCODER,

        unFlags,

        &input,      // Input type       

&output,       // Output type       

&ppActivate,

        &count);

    if (SUCCEEDED(hr) && count == 0)   

{       

hr = MF_E_TOPO_CODEC_NOT_FOUND;   

}

    // Create the first decoder in the list.   

if (SUCCEEDED(hr))   

{

        for(int i = 0; i < count; ++i)

{

hr = ppActivate[i]->ActivateObject(IID_PPV_ARGS(&pCodec));               

}     

}

MFTEnumEX returns S_OK ;

count is 1;

 when execute ActivateObject, the application is crash.

error code is 0xc000041D

I tried to update windows and drivers. but not work.

Current solution is catching the crash and use other encoder to do this job

Is anyone have this issue?

how can i solve the problem in another way?

Tks



Viewing all articles
Browse latest Browse all 1079

Trending Articles