qedit/samplegrabber: Use BaseFilterImpl_JoinFilterGraph().
Manual testing shows that adding or removing the filter does not affect whether it is in one-shot mode. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ab57793f2c
commit
3ee43f85b0
|
@ -66,11 +66,6 @@ static inline SG_Impl *impl_from_strmbase_filter(struct strmbase_filter *iface)
|
|||
return CONTAINING_RECORD(iface, SG_Impl, filter);
|
||||
}
|
||||
|
||||
static inline SG_Impl *impl_from_IBaseFilter(IBaseFilter *iface)
|
||||
{
|
||||
return CONTAINING_RECORD(iface, SG_Impl, filter.IBaseFilter_iface);
|
||||
}
|
||||
|
||||
static inline SG_Impl *impl_from_ISampleGrabber(ISampleGrabber *iface)
|
||||
{
|
||||
return CONTAINING_RECORD(iface, SG_Impl, ISampleGrabber_iface);
|
||||
|
@ -198,22 +193,6 @@ static void SampleGrabber_callback(SG_Impl *This, IMediaSample *sample)
|
|||
}
|
||||
}
|
||||
|
||||
/* IBaseFilter */
|
||||
static HRESULT WINAPI
|
||||
SampleGrabber_IBaseFilter_JoinFilterGraph(IBaseFilter *iface, IFilterGraph *graph, LPCWSTR name)
|
||||
{
|
||||
SG_Impl *This = impl_from_IBaseFilter(iface);
|
||||
|
||||
TRACE("(%p)->(%p, %s)\n", This, graph, debugstr_w(name));
|
||||
|
||||
BaseFilterImpl_JoinFilterGraph(iface, graph, name);
|
||||
This->oneShot = OneShot_None;
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
/* SampleGrabber implementation of ISampleGrabber interface */
|
||||
|
||||
/* IUnknown */
|
||||
static HRESULT WINAPI
|
||||
SampleGrabber_ISampleGrabber_QueryInterface(ISampleGrabber *iface, REFIID riid, void **ppv)
|
||||
|
@ -525,7 +504,7 @@ static const IBaseFilterVtbl IBaseFilter_VTable =
|
|||
BaseFilterImpl_EnumPins,
|
||||
BaseFilterImpl_FindPin,
|
||||
BaseFilterImpl_QueryFilterInfo,
|
||||
SampleGrabber_IBaseFilter_JoinFilterGraph,
|
||||
BaseFilterImpl_JoinFilterGraph,
|
||||
BaseFilterImpl_QueryVendorInfo,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue