Commit fc3377d0 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

quartz: Forward some messages from IMediaSeekingPassThru.

parent 6cfc6bd4
......@@ -782,11 +782,17 @@ static HRESULT WINAPI MediaSeekingPassThru_SetTimeFormat(IMediaSeeking * iface,
static HRESULT WINAPI MediaSeekingPassThru_GetDuration(IMediaSeeking * iface, LONGLONG * pDuration)
{
ICOM_THIS_MULTI(PassThruImpl, IMediaSeeking_vtbl, iface);
PIN_INFO info;
HRESULT hr;
TRACE("(%p/%p)->(%p)\n", iface, This, pDuration);
FIXME("stub\n");
return E_NOTIMPL;
IPin_QueryPinInfo(This->pin, &info);
hr = ForwardCmdSeek(NULL, info.pFilter, fwd_getduration, pDuration);
IBaseFilter_Release(info.pFilter);
return hr;
}
static HRESULT WINAPI MediaSeekingPassThru_GetStopPosition(IMediaSeeking * iface, LONGLONG * pStop)
......@@ -823,11 +829,21 @@ static HRESULT WINAPI MediaSeekingPassThru_ConvertTimeFormat(IMediaSeeking * ifa
static HRESULT WINAPI MediaSeekingPassThru_SetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, DWORD dwCurrentFlags, LONGLONG * pStop, DWORD dwStopFlags)
{
ICOM_THIS_MULTI(PassThruImpl, IMediaSeeking_vtbl, iface);
struct pos_args args;
PIN_INFO info;
HRESULT hr;
TRACE("(%p/%p)->(%p, %p)\n", iface, This, pCurrent, pStop);
args.current = pCurrent;
args.stop = pStop;
args.curflags = dwCurrentFlags;
args.stopflags = dwStopFlags;
FIXME("stub\n");
return E_NOTIMPL;
IPin_QueryPinInfo(This->pin, &info);
hr = ForwardCmdSeek(NULL, info.pFilter, fwd_setposition, &args);
IBaseFilter_Release(info.pFilter);
return hr;
}
static HRESULT WINAPI MediaSeekingPassThru_GetPositions(IMediaSeeking * iface, LONGLONG * pCurrent, LONGLONG * pStop)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment