quartz: Return IMediaSeeking interface for Parser OutputPin.

This commit is contained in:
Erich Hoover 2011-05-14 11:14:36 -06:00 committed by Alexandre Julliard
parent 1aacc5fc40
commit 7a405fa9e9
1 changed files with 2 additions and 3 deletions

View File

@ -624,10 +624,9 @@ static HRESULT WINAPI Parser_OutputPin_QueryInterface(IPin * iface, REFIID riid,
*ppv = iface;
else if (IsEqualIID(riid, &IID_IPin))
*ppv = iface;
/* The Parser filter does not support querying IMediaSeeking, return it directly */
else if (IsEqualIID(riid, &IID_IMediaSeeking))
{
return IBaseFilter_QueryInterface(This->pin.pin.pinInfo.pFilter, &IID_IMediaSeeking, ppv);
}
*ppv = &((ParserImpl*)This->pin.pin.pinInfo.pFilter)->sourceSeeking;
if (*ppv)
{