Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
646f2040
Commit
646f2040
authored
Mar 10, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Rename pfnCheckMediaType to renderer_query_accept.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6ab9ad10
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
13 deletions
+11
-13
evr.c
dlls/evr/evr.c
+2
-2
nullrenderer.c
dlls/qedit/nullrenderer.c
+2
-3
videorenderer.c
dlls/quartz/videorenderer.c
+2
-2
vmr9.c
dlls/quartz/vmr9.c
+2
-2
renderer.c
dlls/strmbase/renderer.c
+2
-2
strmbase.h
include/wine/strmbase.h
+1
-2
No files found.
dlls/evr/evr.c
View file @
646f2040
...
...
@@ -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
,
};
...
...
dlls/qedit/nullrenderer.c
View file @
646f2040
...
...
@@ -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
,
};
...
...
dlls/quartz/videorenderer.c
View file @
646f2040
...
...
@@ -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
,
...
...
dlls/quartz/vmr9.c
View file @
646f2040
...
...
@@ -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
,
...
...
dlls/strmbase/renderer.c
View file @
646f2040
...
...
@@ -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
);
}
...
...
include/wine/strmbase.h
View file @
646f2040
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment