From 36e31c92b2ea2e9091bbca22c5f7bb7e784305f0 Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Fri, 10 Apr 2015 09:47:32 +0000 Subject: [PATCH] [STRMBASE] Fix MediaSeekingPassThru_GetPositions when the pins are unconnected. By Erich E. Hoover. CORE-9303 svn path=/trunk/; revision=67128 --- reactos/lib/3rdparty/strmbase/pospass.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/reactos/lib/3rdparty/strmbase/pospass.c b/reactos/lib/3rdparty/strmbase/pospass.c index c08702d511b..91af649a9f3 100644 --- a/reactos/lib/3rdparty/strmbase/pospass.c +++ b/reactos/lib/3rdparty/strmbase/pospass.c @@ -516,9 +516,11 @@ static HRESULT WINAPI MediaSeekingPassThru_GetPositions(IMediaSeeking * iface, L if (SUCCEEDED(hr)) { hr = IMediaSeeking_GetPositions(seek, pCurrent, pStop); IMediaSeeking_Release(seek); + } else if (hr == VFW_E_NOT_CONNECTED) { + *pCurrent = 0; + *pStop = 0; + hr = S_OK; } - else - return E_NOTIMPL; return hr; }