qcap: Return the connection type from IAMStreamConfig::GetFormat() if connected.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2e6a55a5b1
commit
14088498ec
|
@ -344,8 +344,14 @@ static HRESULT WINAPI AMStreamConfig_GetFormat(IAMStreamConfig *iface, AM_MEDIA_
|
|||
if (!(*mt = CoTaskMemAlloc(sizeof(**mt))))
|
||||
return E_OUTOFMEMORY;
|
||||
|
||||
if (SUCCEEDED(hr = capture_funcs->get_format(filter->device, *mt)))
|
||||
EnterCriticalSection(&filter->filter.csFilter);
|
||||
|
||||
if (filter->source.pin.peer)
|
||||
hr = CopyMediaType(*mt, &filter->source.pin.mt);
|
||||
else if (SUCCEEDED(hr = capture_funcs->get_format(filter->device, *mt)))
|
||||
strmbase_dump_media_type(*mt);
|
||||
|
||||
LeaveCriticalSection(&filter->filter.csFilter);
|
||||
return hr;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue