From 7a405fa9e95860eb40121cb73799fd874097de08 Mon Sep 17 00:00:00 2001 From: Erich Hoover Date: Sat, 14 May 2011 11:14:36 -0600 Subject: [PATCH] quartz: Return IMediaSeeking interface for Parser OutputPin. --- dlls/quartz/parser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/quartz/parser.c b/dlls/quartz/parser.c index 9d7baa0c812..b5a305c0950 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) {