quartz: Remove redundant if clause from WAVEParser_InputPin_PreConnect.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Andrew Eikum <aeikum@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ff9168a458
commit
9a70bb5275
|
@ -306,15 +306,12 @@ static HRESULT WAVEParser_InputPin_PreConnect(IPin * iface, IPin * pConnectPin,
|
|||
return E_FAIL;
|
||||
}
|
||||
|
||||
if (hr == S_OK)
|
||||
{
|
||||
pWAVEParser->StartOfFile = MEDIATIME_FROM_BYTES(pos + sizeof(RIFFCHUNK));
|
||||
pWAVEParser->EndOfFile = MEDIATIME_FROM_BYTES(pos + chunk.cb + sizeof(RIFFCHUNK));
|
||||
}
|
||||
|
||||
if (hr != S_OK)
|
||||
return E_FAIL;
|
||||
|
||||
pWAVEParser->StartOfFile = MEDIATIME_FROM_BYTES(pos + sizeof(RIFFCHUNK));
|
||||
pWAVEParser->EndOfFile = MEDIATIME_FROM_BYTES(pos + chunk.cb + sizeof(RIFFCHUNK));
|
||||
|
||||
props->cbAlign = ((WAVEFORMATEX*)amt.pbFormat)->nBlockAlign;
|
||||
props->cbPrefix = 0;
|
||||
props->cbBuffer = 4096;
|
||||
|
|
Loading…
Reference in New Issue