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
0ff8a572
Commit
0ff8a572
authored
Oct 14, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evr/sample: Implement GetService() for surface buffers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
208520f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
sample.c
dlls/evr/sample.c
+7
-2
evr.c
dlls/evr/tests/evr.c
+11
-1
No files found.
dlls/evr/sample.c
View file @
0ff8a572
...
...
@@ -1075,9 +1075,14 @@ static ULONG WINAPI surface_buffer_gs_Release(IMFGetService *iface)
static
HRESULT
WINAPI
surface_buffer_gs_GetService
(
IMFGetService
*
iface
,
REFGUID
service
,
REFIID
riid
,
void
**
obj
)
{
FIXME
(
"%p, %s, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
service
),
debugstr_guid
(
riid
),
obj
);
struct
surface_buffer
*
buffer
=
impl_from_IMFGetService
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %s, %s, %p.
\n
"
,
iface
,
debugstr_guid
(
service
),
debugstr_guid
(
riid
),
obj
);
if
(
IsEqualGUID
(
service
,
&
MR_BUFFER_SERVICE
))
return
IUnknown_QueryInterface
(
buffer
->
surface
,
riid
,
obj
);
return
E_NOINTERFACE
;
}
static
const
IMFGetServiceVtbl
surface_buffer_gs_vtbl
=
...
...
dlls/evr/tests/evr.c
View file @
0ff8a572
...
...
@@ -718,7 +718,7 @@ todo_wine
static
void
test_surface_sample
(
void
)
{
IDirect3DSurface9
*
backbuffer
=
NULL
;
IDirect3DSurface9
*
backbuffer
=
NULL
,
*
surface
;
IMFDesiredSample
*
desired_sample
;
IMFMediaBuffer
*
buffer
,
*
buffer2
;
LONGLONG
duration
,
time1
,
time2
;
...
...
@@ -870,6 +870,16 @@ static void test_surface_sample(void)
ok
(
hr
==
S_OK
,
"Failed to get buffer count, hr %#x.
\n
"
,
hr
);
ok
(
!
count
,
"Unexpected attribute count.
\n
"
);
hr
=
MFGetService
((
IUnknown
*
)
buffer
,
&
MR_BUFFER_SERVICE
,
&
IID_IDirect3DSurface9
,
(
void
**
)
&
surface
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
surface
==
backbuffer
,
"Unexpected instance.
\n
"
);
IDirect3DSurface9_Release
(
surface
);
hr
=
MFGetService
((
IUnknown
*
)
buffer
,
&
MR_BUFFER_SERVICE
,
&
IID_IUnknown
,
(
void
**
)
&
surface
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
ok
(
surface
==
backbuffer
,
"Unexpected instance.
\n
"
);
IDirect3DSurface9_Release
(
surface
);
IMFMediaBuffer_Release
(
buffer
);
hr
=
IMFSample_GetSampleFlags
(
sample
,
&
flags
);
...
...
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