Click here to Skip to main content
15,881,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I try to create copy of IMediaSample from one of my two input pins of my Filter.

Function
HRESULT hr = m_pAllocator->GetBuffer(&pMediaSample->pOUTSBuffer_1,&start_time, &end_time,AM_GBF_NOTASYNCPOINT);


returns 0x80040211.

When using this function, Graph Edit hangs.
Posted
Updated 29-Sep-10 22:51pm
v2

1 solution

I decided to use

pMediaSample->pINSSBuffer_1->QueryInterface(IID_IMediaSample,(void**)&pMediaSample->pOUTSBuffer_1);


But i do not know, if QueryInterface creates new instance of desired object.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900