Module: wine Branch: master Commit: 6b30b6fb4ee666472673f66140c57083d0f4b862 URL: http://source.winehq.org/git/wine.git/?a=commit;h=6b30b6fb4ee666472673f66140...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Dec 30 20:22:07 2013 +0100
qcap: Added AVICompressorOut_GetMediaType implementation.
---
dlls/qcap/avico.c | 18 ++++++++++++++++-- 1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/dlls/qcap/avico.c b/dlls/qcap/avico.c index 6c5d53f..4866b47 100644 --- a/dlls/qcap/avico.c +++ b/dlls/qcap/avico.c @@ -520,8 +520,22 @@ static LONG WINAPI AVICompressorOut_GetMediaTypeVersion(BasePin *base) static HRESULT WINAPI AVICompressorOut_GetMediaType(BasePin *base, int iPosition, AM_MEDIA_TYPE *amt) { AVICompressor *This = impl_from_IBaseFilter(base->pinInfo.pFilter); - FIXME("(%p)->(%d %p)\n", This, iPosition, amt); - return E_NOTIMPL; + + TRACE("(%p)->(%d %p)\n", base, iPosition, amt); + + if(iPosition || !This->videoinfo) + return S_FALSE; + + amt->majortype = MEDIATYPE_Video; + amt->subtype = MEDIASUBTYPE_PCM; + amt->bFixedSizeSamples = FALSE; + amt->bTemporalCompression = (This->driver_flags & VIDCF_TEMPORAL) != 0; + amt->lSampleSize = This->in->pin.mtCurrent.lSampleSize; + amt->formattype = FORMAT_VideoInfo; + amt->pUnk = NULL; + amt->cbFormat = This->videoinfo_size; + amt->pbFormat = (BYTE*)This->videoinfo; + return S_OK; }
static const BasePinFuncTable AVICompressorOutputBasePinVtbl = {