amstream: Initialize correctly AM_MEDIA_TYPE struct.

oldstable
Christian Costa 2012-11-16 16:46:07 +01:00 committed by Alexandre Julliard
parent 3070dcee3b
commit 56c0151f6d
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ static HRESULT WINAPI BasePinImp_GetMediaType(BasePin *This, int index, AM_MEDIA
MSPID purpose_id;
int i;
/* FIXME: Reset structure as we only fill majortype and minortype for now */
ZeroMemory(amt, sizeof(*amt));
/* Find which stream is associated with the pin */
for (i = 0; i < filter->nb_streams; i++)
if (&This->IPin_iface == filter->pins[i])