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
0ea07738
Commit
0ea07738
authored
Apr 04, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Apr 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Return a default_presenter structure from the default presenter constructor.
parent
f6c1548b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
14 deletions
+8
-14
vmr9.c
dlls/quartz/vmr9.c
+8
-14
No files found.
dlls/quartz/vmr9.c
View file @
0ea07738
...
...
@@ -201,7 +201,7 @@ static inline struct default_presenter *impl_from_IVMRSurfaceAllocator9(IVMRSurf
return
CONTAINING_RECORD
(
iface
,
struct
default_presenter
,
IVMRSurfaceAllocator9_iface
);
}
static
HRESULT
VMR9DefaultAllocatorPresenterImpl_create
(
struct
quartz_vmr
*
parent
,
LPVOID
*
ppv
);
static
HRESULT
default_presenter_create
(
struct
quartz_vmr
*
parent
,
struct
default_presenter
**
presenter
);
static
inline
struct
quartz_vmr
*
impl_from_IBaseFilter
(
IBaseFilter
*
iface
)
{
...
...
@@ -1332,6 +1332,7 @@ static HRESULT WINAPI VMR9FilterConfig_GetRenderingPrefs(IVMRFilterConfig9 *ifac
static
HRESULT
WINAPI
VMR9FilterConfig_SetRenderingMode
(
IVMRFilterConfig9
*
iface
,
DWORD
mode
)
{
struct
default_presenter
*
default_presenter
;
HRESULT
hr
=
S_OK
;
struct
quartz_vmr
*
This
=
impl_from_IVMRFilterConfig9
(
iface
);
...
...
@@ -1350,21 +1351,14 @@ static HRESULT WINAPI VMR9FilterConfig_SetRenderingMode(IVMRFilterConfig9 *iface
case
VMR9Mode_Windowless
:
This
->
cookie
=
~
0
;
if
(
FAILED
(
hr
=
VMR9DefaultAllocatorPresenterImpl_create
(
This
,
(
void
**
)
&
This
->
presenter
)))
if
(
FAILED
(
hr
=
default_presenter_create
(
This
,
&
default_
presenter
)))
{
ERR
(
"Failed to create default presenter, hr %#lx.
\n
"
,
hr
);
break
;
}
if
(
FAILED
(
hr
=
IVMRImagePresenter9_QueryInterface
(
This
->
presenter
,
&
IID_IVMRSurfaceAllocator9
,
(
void
**
)
&
This
->
allocator
)))
{
ERR
(
"Failed to query for IVMRSurfaceAllocator9, hr %#lx.
\n
"
,
hr
);
IVMRImagePresenter9_Release
(
This
->
presenter
);
This
->
allocator
=
NULL
;
This
->
presenter
=
NULL
;
break
;
}
This
->
allocator
=
&
default_presenter
->
IVMRSurfaceAllocator9_iface
;
This
->
presenter
=
&
default_presenter
->
IVMRImagePresenter9_iface
;
IVMRImagePresenter9_AddRef
(
This
->
presenter
);
hr
=
IVMRSurfaceAllocator9_AdviseNotify
(
This
->
allocator
,
&
This
->
IVMRSurfaceAllocatorNotify9_iface
);
break
;
...
...
@@ -3102,7 +3096,7 @@ static IDirect3D9 *init_d3d9(HMODULE d3d9_handle)
return
d3d9_create
(
D3D_SDK_VERSION
);
}
static
HRESULT
VMR9DefaultAllocatorPresenterImpl_create
(
struct
quartz_vmr
*
parent
,
LPVOID
*
ppv
)
static
HRESULT
default_presenter_create
(
struct
quartz_vmr
*
parent
,
struct
default_presenter
**
presenter
)
{
struct
default_presenter
*
object
;
...
...
@@ -3124,6 +3118,6 @@ static HRESULT VMR9DefaultAllocatorPresenterImpl_create(struct quartz_vmr *paren
object
->
pVMR9
=
parent
;
TRACE
(
"Created default presenter %p.
\n
"
,
object
);
*
p
pv
=
&
object
->
IVMRImagePresenter9_iface
;
*
p
resenter
=
object
;
return
S_OK
;
}
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