quartz: Avoid a COM object => iface => object round trip.

This commit is contained in:
Michael Stefaniuc 2012-07-03 00:17:23 +02:00 committed by Alexandre Julliard
parent b904b6949e
commit f557ed6f94
1 changed files with 4 additions and 4 deletions

View File

@ -335,14 +335,14 @@ static HRESULT WINAPI BaseMemAllocator_GetBuffer(IMemAllocator * iface, IMediaSa
hr = VFW_E_TIMEOUT;
else
{
StdMediaSample2 *ms;
struct list * free = list_head(&This->free_list);
list_remove(free);
list_add_head(&This->used_list, free);
*pSample = (IMediaSample *)LIST_ENTRY(free, StdMediaSample2, listentry);
assert(((StdMediaSample2 *)*pSample)->ref == 0);
ms = LIST_ENTRY(free, StdMediaSample2, listentry);
assert(ms->ref == 0);
*pSample = (IMediaSample *)&ms->IMediaSample2_iface;
IMediaSample_AddRef(*pSample);
}
}