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
a855591f
Commit
a855591f
authored
Nov 02, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement IWMReader::GetOutputProps().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
34d85311
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
24 deletions
+18
-24
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+6
-4
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+12
-20
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
a855591f
...
...
@@ -114,11 +114,13 @@ static HRESULT WINAPI WMReader_GetOutputCount(IWMReader *iface, DWORD *count)
return
S_OK
;
}
static
HRESULT
WINAPI
WMReader_GetOutputProps
(
IWMReader
*
iface
,
DWORD
output
_num
,
IWMOutputMediaProps
**
output
)
static
HRESULT
WINAPI
WMReader_GetOutputProps
(
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_get_output_props
(
&
reader
->
reader
,
output
,
props
);
}
static
HRESULT
WINAPI
WMReader_SetOutputProps
(
IWMReader
*
iface
,
DWORD
output_num
,
IWMOutputMediaProps
*
output
)
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
a855591f
...
...
@@ -1397,12 +1397,7 @@ static void test_async_reader_types(void)
output_number
=
i
;
hr
=
IWMReader_GetOutputProps
(
reader
,
output_number
,
&
output_props
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
if
(
hr
!=
S_OK
)
{
winetest_pop_context
();
continue
;
}
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ret_size
=
sizeof
(
mt_buffer
);
hr
=
IWMOutputMediaProps_GetMediaType
(
output_props
,
mt
,
&
ret_size
);
...
...
@@ -1529,25 +1524,22 @@ static void test_async_reader_types(void)
todo_wine
ok
(
hr
==
NS_E_INVALID_OUTPUT_FORMAT
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IWMReader_GetOutputProps
(
reader
,
output_number
,
&
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
)
{
hr
=
IWMReader_GetOutputProps
(
reader
,
output_number
,
&
output_props2
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
output_props2
!=
output_props
,
"Expected different objects.
\n
"
);
hr
=
IWMReader_GetOutputProps
(
reader
,
output_number
,
&
output_props2
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
output_props2
!=
output_props
,
"Expected different objects.
\n
"
);
ref
=
IWMOutputMediaProps_Release
(
output_props2
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
ref
=
IWMOutputMediaProps_Release
(
output_props
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
}
ref
=
IWMOutputMediaProps_Release
(
output_props2
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
ref
=
IWMOutputMediaProps_Release
(
output_props
);
ok
(
!
ref
,
"Got outstanding refcount %d.
\n
"
,
ref
);
winetest_pop_context
();
}
todo_wine
ok
(
got_audio
,
"No audio stream was enumerated.
\n
"
);
todo_wine
ok
(
got_video
,
"No video stream was enumerated.
\n
"
);
ok
(
got_audio
,
"No audio stream was enumerated.
\n
"
);
ok
(
got_video
,
"No video stream was enumerated.
\n
"
);
count
=
0xdeadbeef
;
hr
=
IWMReader_GetOutputFormatCount
(
reader
,
2
,
&
count
);
...
...
@@ -1556,7 +1548,7 @@ static void test_async_reader_types(void)
output_props
=
(
void
*
)
0xdeadbeef
;
hr
=
IWMReader_GetOutputProps
(
reader
,
2
,
&
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
);
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