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
2c1dcf4b
Commit
2c1dcf4b
authored
Dec 06, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 06, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Specify the mode as a VMRMode.
parent
dea65774
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
vmr7.c
dlls/quartz/vmr7.c
+9
-9
No files found.
dlls/quartz/vmr7.c
View file @
2c1dcf4b
...
...
@@ -69,7 +69,7 @@ struct vmr7
DWORD
stream_count
;
DWORD
mixing_prefs
;
VMR
9
Mode
mode
;
VMRMode
mode
;
HMODULE
d3d9_module
;
...
...
@@ -312,7 +312,7 @@ static HRESULT allocate_surfaces(struct vmr7 *filter, const AM_MEDIA_TYPE *mt)
TRACE
(
"Initializing in mode %u, our window %p, clipping window %p.
\n
"
,
filter
->
mode
,
filter
->
window
.
hwnd
,
filter
->
clipping_window
);
if
(
filter
->
mode
==
VMR
9
Mode_Windowless
&&
!
filter
->
clipping_window
)
if
(
filter
->
mode
==
VMRMode_Windowless
&&
!
filter
->
clipping_window
)
return
S_OK
;
info
.
Pool
=
D3DPOOL_DEFAULT
;
...
...
@@ -468,9 +468,9 @@ static HRESULT vmr_query_interface(struct strmbase_renderer *iface, REFIID iid,
*
out
=
&
filter
->
IVMRFilterConfig_iface
;
else
if
(
IsEqualGUID
(
iid
,
&
IID_IVMRMonitorConfig
))
*
out
=
&
filter
->
IVMRMonitorConfig_iface
;
else
if
(
IsEqualGUID
(
iid
,
&
IID_IVMRSurfaceAllocatorNotify
)
&&
filter
->
mode
==
(
VMR9Mode
)
VMRMode_Renderless
)
else
if
(
IsEqualGUID
(
iid
,
&
IID_IVMRSurfaceAllocatorNotify
)
&&
filter
->
mode
==
VMRMode_Renderless
)
*
out
=
&
filter
->
IVMRSurfaceAllocatorNotify_iface
;
else
if
(
IsEqualGUID
(
iid
,
&
IID_IVMRWindowlessControl
)
&&
filter
->
mode
==
(
VMR9Mode
)
VMRMode_Windowless
)
else
if
(
IsEqualGUID
(
iid
,
&
IID_IVMRWindowlessControl
)
&&
filter
->
mode
==
VMRMode_Windowless
)
*
out
=
&
filter
->
IVMRWindowlessControl_iface
;
else
return
E_NOINTERFACE
;
...
...
@@ -821,8 +821,8 @@ static HRESULT WINAPI filter_config_SetRenderingMode(IVMRFilterConfig *iface, DW
switch
(
mode
)
{
case
VMR
9
Mode_Windowed
:
case
VMR
9
Mode_Windowless
:
case
VMRMode_Windowed
:
case
VMRMode_Windowless
:
if
(
FAILED
(
hr
=
default_presenter_create
(
filter
,
&
default_presenter
)))
{
ERR
(
"Failed to create default presenter, hr %#lx.
\n
"
,
hr
);
...
...
@@ -834,7 +834,7 @@ static HRESULT WINAPI filter_config_SetRenderingMode(IVMRFilterConfig *iface, DW
IVMRImagePresenter9_AddRef
(
filter
->
presenter
);
break
;
case
VMR
9
Mode_Renderless
:
case
VMRMode_Renderless
:
break
;
default:
...
...
@@ -842,7 +842,7 @@ static HRESULT WINAPI filter_config_SetRenderingMode(IVMRFilterConfig *iface, DW
return
E_INVALIDARG
;
}
if
(
mode
!=
VMR
9
Mode_Windowed
)
if
(
mode
!=
VMRMode_Windowed
)
video_window_cleanup
(
&
filter
->
window
);
filter
->
mode
=
mode
;
...
...
@@ -1987,7 +1987,7 @@ static HRESULT WINAPI VMR9_SurfaceAllocator_InitializeDevice(IVMRSurfaceAllocato
presenter
->
info
=
*
info
;
if
(
presenter
->
vmr
->
mode
==
VMR
9
Mode_Windowed
)
if
(
presenter
->
vmr
->
mode
==
VMRMode_Windowed
)
window
=
presenter
->
vmr
->
window
.
hwnd
;
else
window
=
presenter
->
vmr
->
clipping_window
;
...
...
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