mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 1138229
GetOutputStreamInfo() after each SetOutputType() r=cpearce
This commit is contained in:
parent
10d481fc98
commit
14d009b649
@ -62,11 +62,6 @@ MFTDecoder::SetMediaTypes(IMFMediaType* aInputType,
|
||||
hr = mDecoder->GetInputStreamInfo(0, &mInputStreamInfo);
|
||||
NS_ENSURE_TRUE(SUCCEEDED(hr), hr);
|
||||
|
||||
hr = mDecoder->GetOutputStreamInfo(0, &mOutputStreamInfo);
|
||||
NS_ENSURE_TRUE(SUCCEEDED(hr), hr);
|
||||
|
||||
mMFTProvidesOutputSamples = IsFlagSet(mOutputStreamInfo.dwFlags, MFT_OUTPUT_STREAM_PROVIDES_SAMPLES);
|
||||
|
||||
hr = SendMFTMessage(MFT_MESSAGE_NOTIFY_BEGIN_STREAMING, 0);
|
||||
NS_ENSURE_TRUE(SUCCEEDED(hr), hr);
|
||||
|
||||
@ -101,6 +96,12 @@ MFTDecoder::SetDecoderOutputType()
|
||||
if (SUCCEEDED(hr) && resultMatch == TRUE) {
|
||||
hr = mDecoder->SetOutputType(0, outputType, 0);
|
||||
NS_ENSURE_TRUE(SUCCEEDED(hr), hr);
|
||||
|
||||
hr = mDecoder->GetOutputStreamInfo(0, &mOutputStreamInfo);
|
||||
NS_ENSURE_TRUE(SUCCEEDED(hr), hr);
|
||||
|
||||
mMFTProvidesOutputSamples = IsFlagSet(mOutputStreamInfo.dwFlags, MFT_OUTPUT_STREAM_PROVIDES_SAMPLES);
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
outputType = nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user