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
c6f818e9
Commit
c6f818e9
authored
Oct 04, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Implement IOverlay::GetWindowHandle().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af162fad
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
58 additions
and
2 deletions
+58
-2
vmr7.c
dlls/quartz/tests/vmr7.c
+26
-0
vmr9.c
dlls/quartz/tests/vmr9.c
+26
-0
vmr9.c
dlls/quartz/vmr9.c
+6
-2
No files found.
dlls/quartz/tests/vmr7.c
View file @
c6f818e9
...
...
@@ -1097,6 +1097,31 @@ static void test_connect_pin(void)
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
}
static
void
test_overlay
(
void
)
{
IBaseFilter
*
filter
=
create_vmr7
(
0
);
IOverlay
*
overlay
;
HRESULT
hr
;
ULONG
ref
;
IPin
*
pin
;
HWND
hwnd
;
IBaseFilter_FindPin
(
filter
,
L"VMR Input0"
,
&
pin
);
hr
=
IPin_QueryInterface
(
pin
,
&
IID_IOverlay
,
(
void
**
)
&
overlay
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hwnd
=
(
HWND
)
0xdeadbeef
;
hr
=
IOverlay_GetWindowHandle
(
overlay
,
&
hwnd
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
hwnd
&&
hwnd
!=
(
HWND
)
0xdeadbeef
,
"Got invalid window %p.
\n
"
,
hwnd
);
IOverlay_Release
(
overlay
);
IPin_Release
(
pin
);
ref
=
IBaseFilter_Release
(
filter
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
}
START_TEST
(
vmr7
)
{
CoInitialize
(
NULL
);
...
...
@@ -1111,6 +1136,7 @@ START_TEST(vmr7)
test_enum_media_types
();
test_unconnected_filter_state
();
test_connect_pin
();
test_overlay
();
CoUninitialize
();
}
dlls/quartz/tests/vmr9.c
View file @
c6f818e9
...
...
@@ -1096,6 +1096,31 @@ static void test_connect_pin(void)
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
}
static
void
test_overlay
(
void
)
{
IBaseFilter
*
filter
=
create_vmr9
(
0
);
IOverlay
*
overlay
;
HRESULT
hr
;
ULONG
ref
;
IPin
*
pin
;
HWND
hwnd
;
IBaseFilter_FindPin
(
filter
,
L"VMR Input0"
,
&
pin
);
hr
=
IPin_QueryInterface
(
pin
,
&
IID_IOverlay
,
(
void
**
)
&
overlay
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hwnd
=
(
HWND
)
0xdeadbeef
;
hr
=
IOverlay_GetWindowHandle
(
overlay
,
&
hwnd
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
hwnd
&&
hwnd
!=
(
HWND
)
0xdeadbeef
,
"Got invalid window %p.
\n
"
,
hwnd
);
IOverlay_Release
(
overlay
);
IPin_Release
(
pin
);
ref
=
IBaseFilter_Release
(
filter
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
}
START_TEST
(
vmr9
)
{
IBaseFilter
*
filter
;
...
...
@@ -1121,6 +1146,7 @@ START_TEST(vmr9)
test_enum_media_types
();
test_unconnected_filter_state
();
test_connect_pin
();
test_overlay
();
CoUninitialize
();
}
dlls/quartz/vmr9.c
View file @
c6f818e9
...
...
@@ -2183,8 +2183,12 @@ static HRESULT WINAPI overlay_SetColorKey(IOverlay *iface, COLORKEY *key)
static
HRESULT
WINAPI
overlay_GetWindowHandle
(
IOverlay
*
iface
,
HWND
*
window
)
{
FIXME
(
"iface %p, window %p, stub!
\n
"
,
iface
,
window
);
return
E_NOTIMPL
;
struct
quartz_vmr
*
filter
=
impl_from_IOverlay
(
iface
);
TRACE
(
"filter %p, window %p.
\n
"
,
filter
,
window
);
*
window
=
filter
->
baseControlWindow
.
baseWindow
.
hWnd
;
return
S_OK
;
}
static
HRESULT
WINAPI
overlay_GetClipList
(
IOverlay
*
iface
,
RECT
*
source
,
RECT
*
dest
,
RGNDATA
**
region
)
...
...
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