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
5306d0ff
Commit
5306d0ff
authored
Nov 04, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement IWMReader::GetOutputFormatCount().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
00bc5eb7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+6
-4
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+4
-4
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
5306d0ff
...
...
@@ -130,11 +130,13 @@ static HRESULT WINAPI WMReader_SetOutputProps(IWMReader *iface, DWORD output_num
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
WMReader_GetOutputFormatCount
(
IWMReader
*
iface
,
DWORD
output
_num
,
DWORD
*
formats
)
static
HRESULT
WINAPI
WMReader_GetOutputFormatCount
(
IWMReader
*
iface
,
DWORD
output
,
DWORD
*
count
)
{
struct
async_reader
*
This
=
impl_from_IWMReader
(
iface
);
FIXME
(
"(%p)->(%u %p)
\n
"
,
This
,
output_num
,
formats
);
return
E_NOTIMPL
;
struct
async_reader
*
reader
=
impl_from_IWMReader
(
iface
);
TRACE
(
"reader %p, output %u, count %p.
\n
"
,
reader
,
output
,
count
);
return
wm_reader_get_output_format_count
(
&
reader
->
reader
,
output
,
count
);
}
static
HRESULT
WINAPI
WMReader_GetOutputFormat
(
IWMReader
*
iface
,
DWORD
output
,
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
5306d0ff
...
...
@@ -1441,8 +1441,8 @@ static void test_async_reader_types(void)
count
=
0
;
hr
=
IWMReader_GetOutputFormatCount
(
reader
,
output_number
,
&
count
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
count
>
0
,
"Got count %u.
\n
"
,
count
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
count
>
0
,
"Got count %u.
\n
"
,
count
);
for
(
j
=
0
;
j
<
count
;
++
j
)
{
...
...
@@ -1518,7 +1518,7 @@ static void test_async_reader_types(void)
}
hr
=
IWMReader_GetOutputFormat
(
reader
,
output_number
,
count
,
&
output_props
);
todo_wine
ok
(
hr
==
NS_E_INVALID_OUTPUT_FORMAT
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
NS_E_INVALID_OUTPUT_FORMAT
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IWMReader_GetOutputProps
(
reader
,
output_number
,
&
output_props
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
...
...
@@ -1540,7 +1540,7 @@ static void test_async_reader_types(void)
count
=
0xdeadbeef
;
hr
=
IWMReader_GetOutputFormatCount
(
reader
,
2
,
&
count
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
count
==
0xdeadbeef
,
"Got count %#x.
\n
"
,
count
);
output_props
=
(
void
*
)
0xdeadbeef
;
...
...
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