Module: wine Branch: master Commit: 7a405fa9e95860eb40121cb73799fd874097de08 URL: http://source.winehq.org/git/wine.git/?a=commit;h=7a405fa9e95860eb40121cb737...
Author: Erich Hoover ehoover@mines.edu Date: Sat May 14 11:14:36 2011 -0600
quartz: Return IMediaSeeking interface for Parser OutputPin.
---
dlls/quartz/parser.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c index 9d7baa0..b5a305c 100644 --- a/dlls/quartz/parser.c +++ b/dlls/quartz/parser.c @@ -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) {