quartz: Forward requests for MediaSeeking from all pins properly.
This commit is contained in:
parent
17a1c64686
commit
4d745e0051
|
@ -628,7 +628,7 @@ static HRESULT WINAPI Parser_OutputPin_QueryInterface(IPin * iface, REFIID riid,
|
|||
*ppv = (LPVOID)iface;
|
||||
else if (IsEqualIID(riid, &IID_IMediaSeeking))
|
||||
{
|
||||
return IBaseFilter_QueryInterface((IBaseFilter*)&This->pin.pin.pinInfo.pFilter, &IID_IMediaSeeking, ppv);
|
||||
return IBaseFilter_QueryInterface(This->pin.pin.pinInfo.pFilter, &IID_IMediaSeeking, ppv);
|
||||
}
|
||||
|
||||
if (*ppv)
|
||||
|
|
|
@ -507,6 +507,10 @@ HRESULT WINAPI InputPin_QueryInterface(IPin * iface, REFIID riid, LPVOID * ppv)
|
|||
*ppv = (LPVOID)iface;
|
||||
else if (IsEqualIID(riid, &IID_IMemInputPin))
|
||||
*ppv = (LPVOID)&This->lpVtblMemInput;
|
||||
else if (IsEqualIID(riid, &IID_IMediaSeeking))
|
||||
{
|
||||
return IBaseFilter_QueryInterface(This->pin.pinInfo.pFilter, &IID_IMediaSeeking, ppv);
|
||||
}
|
||||
|
||||
if (*ppv)
|
||||
{
|
||||
|
@ -803,6 +807,10 @@ HRESULT WINAPI OutputPin_QueryInterface(IPin * iface, REFIID riid, LPVOID * ppv)
|
|||
*ppv = (LPVOID)iface;
|
||||
else if (IsEqualIID(riid, &IID_IPin))
|
||||
*ppv = (LPVOID)iface;
|
||||
else if (IsEqualIID(riid, &IID_IMediaSeeking))
|
||||
{
|
||||
return IBaseFilter_QueryInterface(This->pin.pinInfo.pFilter, &IID_IMediaSeeking, ppv);
|
||||
}
|
||||
|
||||
if (*ppv)
|
||||
{
|
||||
|
@ -1279,6 +1287,10 @@ HRESULT WINAPI PullPin_QueryInterface(IPin * iface, REFIID riid, LPVOID * ppv)
|
|||
*ppv = (LPVOID)iface;
|
||||
else if (IsEqualIID(riid, &IID_IPin))
|
||||
*ppv = (LPVOID)iface;
|
||||
else if (IsEqualIID(riid, &IID_IMediaSeeking))
|
||||
{
|
||||
return IBaseFilter_QueryInterface(This->pin.pinInfo.pFilter, &IID_IMediaSeeking, ppv);
|
||||
}
|
||||
|
||||
if (*ppv)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue