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
6b9bc1bf
Commit
6b9bc1bf
authored
May 17, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
May 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/tests: Fix a crash in test_renderless_formats().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
44274d17
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
vmr9.c
dlls/quartz/tests/vmr9.c
+10
-5
No files found.
dlls/quartz/tests/vmr9.c
View file @
6b9bc1bf
...
...
@@ -2979,14 +2979,14 @@ static void test_renderless_formats(void)
.
pbFormat
=
(
BYTE
*
)
&
vih
,
};
ALLOCATOR_PROPERTIES
req_props
=
{
5
,
32
*
16
*
4
,
1
,
0
},
ret_props
;
IBaseFilter
*
filter
=
create_vmr9
(
VMR9Mode_Renderless
);
IFilterGraph2
*
graph
=
create_graph
();
IVMRSurfaceAllocatorNotify9
*
notify
;
RECT
rect
=
{
0
,
0
,
640
,
480
};
struct
testfilter
source
;
IDirect3DDevice9
*
device
;
IMemAllocator
*
allocator
;
IFilterGraph2
*
graph
;
IMemInputPin
*
input
;
IBaseFilter
*
filter
;
unsigned
int
i
;
HWND
window
;
HRESULT
hr
;
...
...
@@ -3020,13 +3020,17 @@ static void test_renderless_formats(void)
{
&
MEDIASUBTYPE_YV12
,
MAKEFOURCC
(
'Y'
,
'V'
,
'1'
,
'2'
),
VMR9AllocFlag_OffscreenSurface
},
};
IBaseFilter_QueryInterface
(
filter
,
&
IID_IVMRSurfaceAllocatorNotify9
,
(
void
**
)
&
notify
);
AdjustWindowRect
(
&
rect
,
WS_OVERLAPPEDWINDOW
,
FALSE
);
window
=
CreateWindowA
(
"static"
,
"quartz_test"
,
WS_OVERLAPPEDWINDOW
,
0
,
0
,
rect
.
right
-
rect
.
left
,
rect
.
bottom
-
rect
.
top
,
NULL
,
NULL
,
NULL
,
NULL
);
if
(
!
(
device
=
create_device
(
window
)))
goto
out
;
{
DestroyWindow
(
window
);
return
;
}
filter
=
create_vmr9
(
VMR9Mode_Renderless
);
IBaseFilter_QueryInterface
(
filter
,
&
IID_IVMRSurfaceAllocatorNotify9
,
(
void
**
)
&
notify
);
hr
=
IVMRSurfaceAllocatorNotify9_SetD3DDevice
(
notify
,
device
,
MonitorFromWindow
(
window
,
MONITOR_DEFAULTTOPRIMARY
));
if
(
hr
==
E_NOINTERFACE
)
...
...
@@ -3042,6 +3046,7 @@ static void test_renderless_formats(void)
allocator_notify
=
notify
;
testfilter_init
(
&
source
);
graph
=
create_graph
();
IFilterGraph2_AddFilter
(
graph
,
&
source
.
filter
.
IBaseFilter_iface
,
NULL
);
IFilterGraph2_AddFilter
(
graph
,
filter
,
NULL
);
IBaseFilter_FindPin
(
filter
,
L"VMR Input0"
,
&
pin
);
...
...
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