Commit 3f2b5ff2 authored by Anton Baskanov's avatar Anton Baskanov Committed by Alexandre Julliard

amstream: Implement GetMediaType for AMAudioStream based on code from mediastreamfilter.c.

parent ee94f80c
......@@ -1094,9 +1094,18 @@ static HRESULT WINAPI AudioMediaStreamInputPin_GetMediaType(BasePin *base, int i
{
AudioMediaStreamInputPin *This = impl_from_AudioMediaStreamInputPin_IPin(&base->IPin_iface);
FIXME("(%p)->(%d,%p) stub!\n", This, index, media_type);
TRACE("(%p)->(%d,%p)\n", This, index, media_type);
return E_NOTIMPL;
/* FIXME: Reset structure as we only fill majortype and minortype for now */
ZeroMemory(media_type, sizeof(*media_type));
if (index)
return S_FALSE;
media_type->majortype = MEDIATYPE_Audio;
media_type->subtype = MEDIASUBTYPE_PCM;
return S_OK;
}
static HRESULT WINAPI AudioMediaStreamInputPin_Receive(BaseInputPin *base, IMediaSample *sample)
......
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