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
7595461f
Commit
7595461f
authored
Jun 24, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 25, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/vmr9: Return VFW_E_TYPE_NOT_ACCEPTED when connection fails.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1f6423f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
20 deletions
+6
-20
vmr7.c
dlls/quartz/tests/vmr7.c
+2
-6
vmr9.c
dlls/quartz/tests/vmr9.c
+2
-12
vmr9.c
dlls/quartz/vmr9.c
+2
-2
No files found.
dlls/quartz/tests/vmr7.c
View file @
7595461f
...
...
@@ -1366,12 +1366,8 @@ static void test_connect_pin(void)
vih
.
bmiHeader
.
biBitCount
=
16
;
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
source
.
source
.
pin
.
IPin_iface
,
pin
,
&
req_mt
);
todo_wine
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IFilterGraph2_Disconnect
(
graph
,
&
source
.
source
.
pin
.
IPin_iface
);
IFilterGraph2_Disconnect
(
graph
,
pin
);
}
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
vih
.
bmiHeader
.
biBitCount
=
32
;
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
source
.
source
.
pin
.
IPin_iface
,
pin
,
&
req_mt
);
if
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
)
/* w7u */
...
...
dlls/quartz/tests/vmr9.c
View file @
7595461f
...
...
@@ -1618,20 +1618,10 @@ static void test_connect_pin(void)
req_mt
.
subtype
=
MEDIASUBTYPE_RGB8
;
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
source
.
source
.
pin
.
IPin_iface
,
pin
,
&
req_mt
);
todo_wine
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IFilterGraph2_Disconnect
(
graph
,
&
source
.
source
.
pin
.
IPin_iface
);
IFilterGraph2_Disconnect
(
graph
,
pin
);
}
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
req_mt
.
subtype
=
MEDIASUBTYPE_WAVE
;
hr
=
IFilterGraph2_ConnectDirect
(
graph
,
&
source
.
source
.
pin
.
IPin_iface
,
pin
,
&
req_mt
);
todo_wine
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
IFilterGraph2_Disconnect
(
graph
,
&
source
.
source
.
pin
.
IPin_iface
);
IFilterGraph2_Disconnect
(
graph
,
pin
);
}
ok
(
hr
==
VFW_E_TYPE_NOT_ACCEPTED
,
"Got hr %#x.
\n
"
,
hr
);
req_mt
.
subtype
=
MEDIASUBTYPE_RGB32
;
peer
=
(
IPin
*
)
0xdeadbeef
;
...
...
dlls/quartz/vmr9.c
View file @
7595461f
...
...
@@ -424,7 +424,7 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
default:
FIXME
(
"Unhandled bit depth %u.
\n
"
,
filter
->
bmiheader
.
biBitCount
);
free
(
filter
->
surfaces
);
return
E_INVALIDARG
;
return
VFW_E_TYPE_NOT_ACCEPTED
;
}
info
.
dwFlags
=
VMR9AllocFlag_TextureSurface
;
...
...
@@ -456,7 +456,7 @@ static HRESULT allocate_surfaces(struct quartz_vmr *filter, const AM_MEDIA_TYPE
}
free
(
filter
->
surfaces
);
return
hr
;
return
VFW_E_TYPE_NOT_ACCEPTED
;
}
static
void
vmr_start_stream
(
struct
strmbase_renderer
*
iface
)
...
...
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