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
d7175e26
Commit
d7175e26
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::SetOutputProps().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5306d0ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
13 deletions
+8
-13
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+6
-4
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+2
-9
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
d7175e26
...
...
@@ -123,11 +123,13 @@ static HRESULT WINAPI WMReader_GetOutputProps(IWMReader *iface, DWORD output, IW
return
wm_reader_get_output_props
(
&
reader
->
reader
,
output
,
props
);
}
static
HRESULT
WINAPI
WMReader_SetOutputProps
(
IWMReader
*
iface
,
DWORD
output
_num
,
IWMOutputMediaProps
*
output
)
static
HRESULT
WINAPI
WMReader_SetOutputProps
(
IWMReader
*
iface
,
DWORD
output
,
IWMOutputMediaProps
*
props
)
{
struct
async_reader
*
This
=
impl_from_IWMReader
(
iface
);
FIXME
(
"(%p)->(%u %p)
\n
"
,
This
,
output_num
,
output
);
return
E_NOTIMPL
;
struct
async_reader
*
reader
=
impl_from_IWMReader
(
iface
);
TRACE
(
"reader %p, output %u, props %p.
\n
"
,
reader
,
output
,
props
);
return
wm_reader_set_output_props
(
&
reader
->
reader
,
output
,
props
);
}
static
HRESULT
WINAPI
WMReader_GetOutputFormatCount
(
IWMReader
*
iface
,
DWORD
output
,
DWORD
*
count
)
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
d7175e26
...
...
@@ -1483,14 +1483,7 @@ static void test_async_reader_types(void)
check_video_type
(
mt
);
hr
=
IWMReader_SetOutputProps
(
reader
,
output_number
,
output_props
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
{
ref
=
IWMOutputMediaProps_Release
(
output_props
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
winetest_pop_context
();
continue
;
}
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IWMReader_SetOutputProps
(
reader
,
1
-
output_number
,
output_props
);
if
(
!
i
)
ok
(
hr
==
NS_E_INCOMPATIBLE_FORMAT
/* win < 8, win10 1507-1809 */
...
...
@@ -1498,7 +1491,7 @@ static void test_async_reader_types(void)
else
todo_wine
ok
(
hr
==
NS_E_INVALID_REQUEST
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IWMReader_SetOutputProps
(
reader
,
2
,
output_props
);
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IWMReader_GetOutputProps
(
reader
,
output_number
,
&
output_props2
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
...
...
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