Author: akhaldi
Date: Fri Apr 10 09:47:32 2015
New Revision: 67128
URL:
http://svn.reactos.org/svn/reactos?rev=67128&view=rev
Log:
[STRMBASE] Fix MediaSeekingPassThru_GetPositions when the pins are unconnected. By Erich
E. Hoover. CORE-9303
Modified:
trunk/reactos/lib/3rdparty/strmbase/pospass.c
Modified: trunk/reactos/lib/3rdparty/strmbase/pospass.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/3rdparty/strmbase/posp…
==============================================================================
--- trunk/reactos/lib/3rdparty/strmbase/pospass.c [iso-8859-1] (original)
+++ trunk/reactos/lib/3rdparty/strmbase/pospass.c [iso-8859-1] Fri Apr 10 09:47:32 2015
@@ -516,9 +516,11 @@
if (SUCCEEDED(hr)) {
hr = IMediaSeeking_GetPositions(seek, pCurrent, pStop);
IMediaSeeking_Release(seek);
- }
- else
- return E_NOTIMPL;
+ } else if (hr == VFW_E_NOT_CONNECTED) {
+ *pCurrent = 0;
+ *pStop = 0;
+ hr = S_OK;
+ }
return hr;
}