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
00bc5eb7
Commit
00bc5eb7
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::GetOutputFormat().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
beb7966d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+7
-4
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+10
-13
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
00bc5eb7
...
...
@@ -137,11 +137,14 @@ static HRESULT WINAPI WMReader_GetOutputFormatCount(IWMReader *iface, DWORD outp
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
WMReader_GetOutputFormat
(
IWMReader
*
iface
,
DWORD
output_num
,
DWORD
format_num
,
IWMOutputMediaProps
**
props
)
static
HRESULT
WINAPI
WMReader_GetOutputFormat
(
IWMReader
*
iface
,
DWORD
output
,
DWORD
index
,
IWMOutputMediaProps
**
props
)
{
struct
async_reader
*
This
=
impl_from_IWMReader
(
iface
);
FIXME
(
"(%p)->(%u %u %p)
\n
"
,
This
,
output_num
,
format_num
,
props
);
return
E_NOTIMPL
;
struct
async_reader
*
reader
=
impl_from_IWMReader
(
iface
);
TRACE
(
"reader %p, output %u, index %u, props %p.
\n
"
,
reader
,
output
,
index
,
props
);
return
wm_reader_get_output_format
(
&
reader
->
reader
,
output
,
index
,
props
);
}
static
HRESULT
WINAPI
WMReader_Start
(
IWMReader
*
iface
,
QWORD
start
,
QWORD
duration
,
float
rate
,
void
*
context
)
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
00bc5eb7
...
...
@@ -1419,21 +1419,18 @@ static void test_async_reader_types(void)
* with. In particular it has to be PCM. */
hr
=
IWMReader_GetOutputFormat
(
reader
,
output_number
,
0
,
&
output_props
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ret_size
=
sizeof
(
mt2_buffer
);
hr
=
IWMOutputMediaProps_GetMediaType
(
output_props
,
mt2
,
&
ret_size
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ret_size
=
sizeof
(
mt2_buffer
);
hr
=
IWMOutputMediaProps_GetMediaType
(
output_props
,
mt2
,
&
ret_size
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ref
=
IWMOutputMediaProps_Release
(
output_props
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
ref
=
IWMOutputMediaProps_Release
(
output_props
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
/* The sample size might differ. */
mt2
->
lSampleSize
=
mt
->
lSampleSize
;
ok
(
compare_media_types
(
mt
,
mt2
),
"Media types didn't match.
\n
"
);
}
/* The sample size might differ. */
mt2
->
lSampleSize
=
mt
->
lSampleSize
;
ok
(
compare_media_types
(
mt
,
mt2
),
"Media types didn't match.
\n
"
);
}
else
{
...
...
@@ -1553,7 +1550,7 @@ static void test_async_reader_types(void)
output_props
=
(
void
*
)
0xdeadbeef
;
hr
=
IWMReader_GetOutputFormat
(
reader
,
2
,
0
,
&
output_props
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
output_props
==
(
void
*
)
0xdeadbeef
,
"Got output props %p.
\n
"
,
output_props
);
IWMReaderAdvanced2_Release
(
advanced
);
...
...
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