strmbase: Rename pfnBreakConnect to renderer_disconnect.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-03-11 17:21:58 -06:00 committed by Alexandre Julliard
parent 40d77283eb
commit 4bede3b27b
3 changed files with 5 additions and 7 deletions

View File

@ -512,7 +512,7 @@ static HRESULT vmr_connect(struct strmbase_renderer *iface, const AM_MEDIA_TYPE
return hr; return hr;
} }
static HRESULT WINAPI VMR9_BreakConnect(struct strmbase_renderer *This) static HRESULT vmr_disconnect(struct strmbase_renderer *This)
{ {
struct quartz_vmr *filter = impl_from_IBaseFilter(&This->filter.IBaseFilter_iface); struct quartz_vmr *filter = impl_from_IBaseFilter(&This->filter.IBaseFilter_iface);
HRESULT hr = S_OK; HRESULT hr = S_OK;
@ -638,7 +638,7 @@ static const struct strmbase_renderer_ops renderer_ops =
.renderer_start_stream = vmr_start_stream, .renderer_start_stream = vmr_start_stream,
.renderer_stop_stream = vmr_stop_stream, .renderer_stop_stream = vmr_stop_stream,
.renderer_connect = vmr_connect, .renderer_connect = vmr_connect,
.pfnBreakConnect = VMR9_BreakConnect, .renderer_disconnect = vmr_disconnect,
.renderer_destroy = vmr_destroy, .renderer_destroy = vmr_destroy,
.renderer_query_interface = vmr_query_interface, .renderer_query_interface = vmr_query_interface,
.renderer_pin_query_interface = vmr_pin_query_interface, .renderer_pin_query_interface = vmr_pin_query_interface,

View File

@ -427,8 +427,8 @@ static void sink_disconnect(struct strmbase_sink *iface)
{ {
struct strmbase_renderer *filter = impl_from_IPin(&iface->pin.IPin_iface); struct strmbase_renderer *filter = impl_from_IPin(&iface->pin.IPin_iface);
if (filter->pFuncsTable->pfnBreakConnect) if (filter->pFuncsTable->renderer_disconnect)
filter->pFuncsTable->pfnBreakConnect(filter); filter->pFuncsTable->renderer_disconnect(filter);
} }
static HRESULT sink_eos(struct strmbase_sink *iface) static HRESULT sink_eos(struct strmbase_sink *iface)

View File

@ -305,8 +305,6 @@ struct strmbase_renderer
BOOL eos; BOOL eos;
}; };
typedef HRESULT (WINAPI *BaseRenderer_BreakConnect) (struct strmbase_renderer *iface);
struct strmbase_renderer_ops struct strmbase_renderer_ops
{ {
HRESULT (*renderer_query_accept)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt); HRESULT (*renderer_query_accept)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt);
@ -315,7 +313,7 @@ struct strmbase_renderer_ops
void (*renderer_start_stream)(struct strmbase_renderer *iface); void (*renderer_start_stream)(struct strmbase_renderer *iface);
void (*renderer_stop_stream)(struct strmbase_renderer *iface); void (*renderer_stop_stream)(struct strmbase_renderer *iface);
HRESULT (*renderer_connect)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt); HRESULT (*renderer_connect)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt);
BaseRenderer_BreakConnect pfnBreakConnect; HRESULT (*renderer_disconnect)(struct strmbase_renderer *iface);
void (*renderer_destroy)(struct strmbase_renderer *iface); void (*renderer_destroy)(struct strmbase_renderer *iface);
HRESULT (*renderer_query_interface)(struct strmbase_renderer *iface, REFIID iid, void **out); HRESULT (*renderer_query_interface)(struct strmbase_renderer *iface, REFIID iid, void **out);
HRESULT (*renderer_pin_query_interface)(struct strmbase_renderer *iface, REFIID iid, void **out); HRESULT (*renderer_pin_query_interface)(struct strmbase_renderer *iface, REFIID iid, void **out);