Module: wine Branch: master Commit: 2b23682ddd36163a8c4068266fbb79e0037e314f URL: https://source.winehq.org/git/wine.git/?a=commit;h=2b23682ddd36163a8c4068266...
Author: Zebediah Figura z.figura12@gmail.com Date: Tue Mar 5 10:57:00 2019 -0600
quartz/waveparser: Fill out all members of the source media type.
Signed-off-by: Zebediah Figura z.figura12@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/quartz/waveparser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/quartz/waveparser.c b/dlls/quartz/waveparser.c index 1c3447f..b21b2e9 100644 --- a/dlls/quartz/waveparser.c +++ b/dlls/quartz/waveparser.c @@ -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;