Commit 646f2040 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

strmbase: Rename pfnCheckMediaType to renderer_query_accept.

parent 6ab9ad10
......@@ -54,7 +54,7 @@ static HRESULT WINAPI evr_DoRenderSample(struct strmbase_renderer *iface, IMedia
return E_NOTIMPL;
}
static HRESULT WINAPI evr_CheckMediaType(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
static HRESULT evr_query_accept(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
{
FIXME("Not implemented.\n");
return E_NOTIMPL;
......@@ -62,7 +62,7 @@ static HRESULT WINAPI evr_CheckMediaType(struct strmbase_renderer *iface, const
static const struct strmbase_renderer_ops renderer_ops =
{
.pfnCheckMediaType = evr_CheckMediaType,
.renderer_query_accept = evr_query_accept,
.pfnDoRenderSample = evr_DoRenderSample,
.renderer_destroy = evr_destroy,
};
......
......@@ -41,9 +41,8 @@ static HRESULT WINAPI NullRenderer_DoRenderSample(struct strmbase_renderer *ifac
return S_OK;
}
static HRESULT WINAPI NullRenderer_CheckMediaType(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
static HRESULT null_renderer_query_accept(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
{
TRACE("Not a stub!\n");
return S_OK;
}
......@@ -57,7 +56,7 @@ static void null_renderer_destroy(struct strmbase_renderer *iface)
static const struct strmbase_renderer_ops renderer_ops =
{
.pfnCheckMediaType = NullRenderer_CheckMediaType,
.renderer_query_accept = null_renderer_query_accept,
.pfnDoRenderSample = NullRenderer_DoRenderSample,
.renderer_destroy = null_renderer_destroy,
};
......
......@@ -105,7 +105,7 @@ static HRESULT WINAPI VideoRenderer_DoRenderSample(struct strmbase_renderer *ifa
return S_OK;
}
static HRESULT WINAPI VideoRenderer_CheckMediaType(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
static HRESULT video_renderer_query_accept(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
{
if (!IsEqualGUID(&mt->majortype, &MEDIATYPE_Video))
return S_FALSE;
......@@ -213,7 +213,7 @@ static RECT video_renderer_get_default_rect(struct video_window *iface)
static const struct strmbase_renderer_ops renderer_ops =
{
.pfnCheckMediaType = VideoRenderer_CheckMediaType,
.renderer_query_accept = video_renderer_query_accept,
.pfnDoRenderSample = VideoRenderer_DoRenderSample,
.renderer_init_stream = video_renderer_init_stream,
.renderer_stop_stream = video_renderer_stop_stream,
......
......@@ -312,7 +312,7 @@ static HRESULT WINAPI VMR9_DoRenderSample(struct strmbase_renderer *iface, IMedi
return IVMRImagePresenter9_PresentImage(filter->presenter, filter->cookie, &info);
}
static HRESULT WINAPI VMR9_CheckMediaType(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
static HRESULT vmr_query_accept(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt)
{
if (!IsEqualIID(&mt->majortype, &MEDIATYPE_Video) || !mt->pbFormat)
return S_FALSE;
......@@ -637,7 +637,7 @@ static HRESULT vmr_pin_query_interface(struct strmbase_renderer *iface, REFIID i
static const struct strmbase_renderer_ops renderer_ops =
{
.pfnCheckMediaType = VMR9_CheckMediaType,
.renderer_query_accept = vmr_query_accept,
.pfnDoRenderSample = VMR9_DoRenderSample,
.renderer_init_stream = vmr_init_stream,
.renderer_start_stream = vmr_start_stream,
......
......@@ -302,7 +302,7 @@ static const struct strmbase_filter_ops filter_ops =
static HRESULT sink_query_accept(struct strmbase_pin *pin, const AM_MEDIA_TYPE *mt)
{
struct strmbase_renderer *filter = impl_from_IPin(&pin->IPin_iface);
return filter->pFuncsTable->pfnCheckMediaType(filter, mt);
return filter->pFuncsTable->renderer_query_accept(filter, mt);
}
static HRESULT sink_query_interface(struct strmbase_pin *iface, REFIID iid, void **out)
......@@ -344,7 +344,7 @@ static HRESULT WINAPI BaseRenderer_Receive(struct strmbase_sink *pin, IMediaSamp
TRACE("Format change.\n");
strmbase_dump_media_type(mt);
if (FAILED(filter->pFuncsTable->pfnCheckMediaType(filter, mt)))
if (FAILED(filter->pFuncsTable->renderer_query_accept(filter, mt)))
return VFW_E_TYPE_NOT_ACCEPTED;
DeleteMediaType(mt);
}
......
......@@ -305,13 +305,12 @@ struct strmbase_renderer
BOOL eos;
};
typedef HRESULT (WINAPI *BaseRenderer_CheckMediaType)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt);
typedef HRESULT (WINAPI *BaseRenderer_DoRenderSample)(struct strmbase_renderer *iface, IMediaSample *sample);
typedef HRESULT (WINAPI *BaseRenderer_BreakConnect) (struct strmbase_renderer *iface);
struct strmbase_renderer_ops
{
BaseRenderer_CheckMediaType pfnCheckMediaType;
HRESULT (*renderer_query_accept)(struct strmbase_renderer *iface, const AM_MEDIA_TYPE *mt);
BaseRenderer_DoRenderSample pfnDoRenderSample;
void (*renderer_init_stream)(struct strmbase_renderer *iface);
void (*renderer_start_stream)(struct strmbase_renderer *iface);
......
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