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
ecb7c901
Commit
ecb7c901
authored
Dec 23, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qcap/avimux: Implement source_query_accept().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c5a9373d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
avimux.c
dlls/qcap/avimux.c
+5
-2
avimux.c
dlls/qcap/tests/avimux.c
+3
-2
No files found.
dlls/qcap/avimux.c
View file @
ecb7c901
...
...
@@ -1110,9 +1110,12 @@ static HRESULT source_query_interface(struct strmbase_pin *iface, REFIID iid, vo
return
S_OK
;
}
static
HRESULT
source_query_accept
(
struct
strmbase_pin
*
base
,
const
AM_MEDIA_TYPE
*
a
mt
)
static
HRESULT
source_query_accept
(
struct
strmbase_pin
*
iface
,
const
AM_MEDIA_TYPE
*
mt
)
{
FIXME
(
"(%p) stub
\n
"
,
base
);
if
(
!
IsEqualGUID
(
&
mt
->
majortype
,
&
GUID_NULL
)
&&
!
IsEqualGUID
(
&
mt
->
majortype
,
&
MEDIATYPE_Stream
))
return
S_FALSE
;
if
(
!
IsEqualGUID
(
&
mt
->
subtype
,
&
GUID_NULL
)
&&
!
IsEqualGUID
(
&
mt
->
subtype
,
&
MEDIASUBTYPE_Avi
))
return
S_FALSE
;
return
S_OK
;
}
...
...
dlls/qcap/tests/avimux.c
View file @
ecb7c901
...
...
@@ -468,6 +468,7 @@ static void test_media_types(void)
pmt
->
bFixedSizeSamples
=
FALSE
;
pmt
->
bTemporalCompression
=
TRUE
;
pmt
->
lSampleSize
=
123
;
pmt
->
formattype
=
FORMAT_VideoInfo
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
...
...
@@ -476,7 +477,7 @@ static void test_media_types(void)
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
majortype
=
MEDIATYPE_Video
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
majortype
=
MEDIATYPE_Stream
;
pmt
->
subtype
=
GUID_NULL
;
...
...
@@ -484,7 +485,7 @@ static void test_media_types(void)
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
subtype
=
MEDIASUBTYPE_RGB8
;
hr
=
IPin_QueryAccept
(
pin
,
pmt
);
todo_wine
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_FALSE
,
"Got hr %#x.
\n
"
,
hr
);
pmt
->
subtype
=
MEDIASUBTYPE_Avi
;
CoTaskMemFree
(
pmt
);
...
...
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