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
442ef406
Commit
442ef406
authored
Dec 08, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 19, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Implement IVMRSurfaceAllocatorNotify::AdviseSurfaceAllocator().
parent
4c40aeb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
+33
-2
vmr7.c
dlls/quartz/vmr7.c
+33
-2
No files found.
dlls/quartz/vmr7.c
View file @
442ef406
...
@@ -1176,8 +1176,39 @@ static ULONG WINAPI surface_allocator_notify_Release(IVMRSurfaceAllocatorNotify
...
@@ -1176,8 +1176,39 @@ static ULONG WINAPI surface_allocator_notify_Release(IVMRSurfaceAllocatorNotify
static
HRESULT
WINAPI
surface_allocator_notify_AdviseSurfaceAllocator
(
static
HRESULT
WINAPI
surface_allocator_notify_AdviseSurfaceAllocator
(
IVMRSurfaceAllocatorNotify
*
iface
,
DWORD_PTR
cookie
,
IVMRSurfaceAllocator
*
allocator
)
IVMRSurfaceAllocatorNotify
*
iface
,
DWORD_PTR
cookie
,
IVMRSurfaceAllocator
*
allocator
)
{
{
FIXME
(
"iface %p, cookie %#Ix, allocator %p, stub!
\n
"
,
iface
,
cookie
,
allocator
);
struct
vmr7
*
filter
=
impl_from_IVMRSurfaceAllocatorNotify
(
iface
);
return
E_NOTIMPL
;
IVMRImagePresenter
*
presenter
;
TRACE
(
"filter %p, cookie %#Ix, allocator %p.
\n
"
,
filter
,
cookie
,
allocator
);
EnterCriticalSection
(
&
filter
->
renderer
.
filter
.
filter_cs
);
filter
->
cookie
=
cookie
;
if
(
filter
->
renderer
.
sink
.
pin
.
peer
)
{
LeaveCriticalSection
(
&
filter
->
renderer
.
filter
.
filter_cs
);
WARN
(
"Attempt to set allocator while connected; returning VFW_E_WRONG_STATE.
\n
"
);
return
VFW_E_WRONG_STATE
;
}
if
(
FAILED
(
IVMRSurfaceAllocator_QueryInterface
(
allocator
,
&
IID_IVMRImagePresenter
,
(
void
**
)
&
presenter
)))
{
LeaveCriticalSection
(
&
filter
->
renderer
.
filter
.
filter_cs
);
return
E_NOINTERFACE
;
}
if
(
filter
->
allocator
)
{
IVMRImagePresenter_Release
(
filter
->
presenter
);
IVMRSurfaceAllocator_Release
(
filter
->
allocator
);
}
filter
->
allocator
=
allocator
;
filter
->
presenter
=
presenter
;
IVMRSurfaceAllocator_AddRef
(
allocator
);
LeaveCriticalSection
(
&
filter
->
renderer
.
filter
.
filter_cs
);
return
S_OK
;
}
}
static
HRESULT
WINAPI
surface_allocator_notify_SetDDrawDevice
(
static
HRESULT
WINAPI
surface_allocator_notify_SetDDrawDevice
(
...
...
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