Commit 2b23682d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

quartz/waveparser: Fill out all members of the source media type.

parent c0c58761
......@@ -287,10 +287,13 @@ static HRESULT WAVEParser_InputPin_PreConnect(IPin * iface, IPin * pConnectPin,
amt.majortype = MEDIATYPE_Audio;
amt.formattype = FORMAT_WaveFormatEx;
amt.bFixedSizeSamples = TRUE;
amt.bTemporalCompression = FALSE;
amt.lSampleSize = 1;
amt.pUnk = NULL;
amt.cbFormat = max(chunk.cb, sizeof(WAVEFORMATEX));
amt.pbFormat = CoTaskMemAlloc(amt.cbFormat);
memset(amt.pbFormat, 0, amt.cbFormat);
amt.pUnk = NULL;
IAsyncReader_SyncRead(This->pReader, pos, chunk.cb, amt.pbFormat);
amt.subtype = MEDIATYPE_Audio;
amt.subtype.Data1 = ((WAVEFORMATEX*)amt.pbFormat)->wFormatTag;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment