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
76b6bcbf
Commit
76b6bcbf
authored
Feb 03, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/filesource: Accept any non-null subtype.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f31815f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
filesource.c
dlls/quartz/filesource.c
+2
-1
filesource.c
dlls/quartz/tests/filesource.c
+1
-1
No files found.
dlls/quartz/filesource.c
View file @
76b6bcbf
...
@@ -591,7 +591,8 @@ static HRESULT source_query_accept(struct strmbase_pin *iface, const AM_MEDIA_TY
...
@@ -591,7 +591,8 @@ static HRESULT source_query_accept(struct strmbase_pin *iface, const AM_MEDIA_TY
AsyncReader
*
filter
=
impl_from_strmbase_pin
(
iface
);
AsyncReader
*
filter
=
impl_from_strmbase_pin
(
iface
);
if
(
IsEqualGUID
(
&
mt
->
majortype
,
&
filter
->
mt
.
majortype
)
if
(
IsEqualGUID
(
&
mt
->
majortype
,
&
filter
->
mt
.
majortype
)
&&
IsEqualGUID
(
&
mt
->
subtype
,
&
filter
->
mt
.
subtype
))
&&
(
!
IsEqualGUID
(
&
mt
->
subtype
,
&
GUID_NULL
)
||
IsEqualGUID
(
&
filter
->
mt
.
subtype
,
&
GUID_NULL
)))
return
S_OK
;
return
S_OK
;
return
S_FALSE
;
return
S_FALSE
;
...
...
dlls/quartz/tests/filesource.c
View file @
76b6bcbf
...
@@ -389,7 +389,7 @@ static void test_file_source_filter(void)
...
@@ -389,7 +389,7 @@ static void test_file_source_filter(void)
mt
.
formattype
=
FORMAT_VideoInfo
;
mt
.
formattype
=
FORMAT_VideoInfo
;
mt
.
subtype
=
MEDIASUBTYPE_RGB32
;
mt
.
subtype
=
MEDIASUBTYPE_RGB32
;
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
mt
.
majortype
=
MEDIATYPE_Video
;
mt
.
majortype
=
MEDIATYPE_Video
;
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
hr
=
IPin_QueryAccept
(
pin
,
&
mt
);
...
...
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