Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
7da087b7
Commit
7da087b7
authored
May 01, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Remove the "force" parameter of VMR9_maybe_init().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1cb4b642
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
vmr9.c
dlls/quartz/vmr9.c
+3
-5
No files found.
dlls/quartz/vmr9.c
View file @
7da087b7
...
...
@@ -387,7 +387,7 @@ static HRESULT initialize_device(struct quartz_vmr *filter, VMR9AllocationInfo *
return
hr
;
}
static
HRESULT
VMR9_maybe_init
(
struct
quartz_vmr
*
filter
,
BOOL
force
,
const
AM_MEDIA_TYPE
*
mt
)
static
HRESULT
allocate_surfaces
(
struct
quartz_vmr
*
filter
,
const
AM_MEDIA_TYPE
*
mt
)
{
VMR9AllocationInfo
info
=
{};
HRESULT
hr
=
E_FAIL
;
...
...
@@ -418,11 +418,9 @@ static HRESULT VMR9_maybe_init(struct quartz_vmr *filter, BOOL force, const AM_M
TRACE
(
"Initializing in mode %u, our window %p, clipping window %p.
\n
"
,
filter
->
mode
,
filter
->
baseControlWindow
.
hwnd
,
filter
->
hWndClippingWindow
);
if
(
filter
->
num_surfaces
)
return
S_OK
;
if
(
filter
->
mode
==
VMR9Mode_Windowless
&&
!
filter
->
hWndClippingWindow
)
return
(
force
?
VFW_E_RUNTIME_ERROR
:
S_OK
)
;
return
S_OK
;
info
.
dwWidth
=
filter
->
source_rect
.
right
;
info
.
dwHeight
=
filter
->
source_rect
.
bottom
;
...
...
@@ -542,7 +540,7 @@ static HRESULT vmr_connect(struct strmbase_renderer *iface, const AM_MEDIA_TYPE
if
(
filter
->
mode
||
SUCCEEDED
(
hr
=
IVMRFilterConfig9_SetRenderingMode
(
&
filter
->
IVMRFilterConfig9_iface
,
VMR9Mode_Windowed
)))
hr
=
VMR9_maybe_init
(
filter
,
FALSE
,
mt
);
hr
=
allocate_surfaces
(
filter
,
mt
);
return
hr
;
}
...
...
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