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
b173aa7a
Commit
b173aa7a
authored
Nov 17, 2022
by
Ziqing Hui
Committed by
Alexandre Julliard
Nov 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement media_object_GetStreamCount for WMV decoder.
parent
9d1c7692
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
transform.c
dlls/mf/tests/transform.c
+0
-6
wmv_decoder.c
dlls/winegstreamer/wmv_decoder.c
+8
-2
No files found.
dlls/mf/tests/transform.c
View file @
b173aa7a
...
...
@@ -4501,22 +4501,16 @@ static void test_wmv_decoder_media_object(void)
/* Test GetStreamCount. */
in_count
=
out_count
=
0xdeadbeef
;
hr
=
IMediaObject_GetStreamCount
(
media_object
,
&
in_count
,
&
out_count
);
todo_wine
ok
(
hr
==
S_OK
,
"GetStreamCount returned %#lx.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
in_count
==
1
,
"Got unexpected in_count %lu.
\n
"
,
in_count
);
ok
(
out_count
==
1
,
"Got unexpected in_count %lu.
\n
"
,
out_count
);
}
/* Test GetStreamCount with invalid arguments. */
in_count
=
out_count
=
0xdeadbeef
;
hr
=
IMediaObject_GetStreamCount
(
media_object
,
NULL
,
&
out_count
);
todo_wine
ok
(
hr
==
E_POINTER
,
"GetStreamCount returned %#lx.
\n
"
,
hr
);
ok
(
out_count
==
0xdeadbeef
,
"Got unexpected out_count %lu.
\n
"
,
out_count
);
hr
=
IMediaObject_GetStreamCount
(
media_object
,
&
in_count
,
NULL
);
todo_wine
ok
(
hr
==
E_POINTER
,
"GetStreamCount returned %#lx.
\n
"
,
hr
);
ok
(
in_count
==
0xdeadbeef
,
"Got unexpected in_count %lu.
\n
"
,
in_count
);
...
...
dlls/winegstreamer/wmv_decoder.c
View file @
b173aa7a
...
...
@@ -320,8 +320,14 @@ static ULONG WINAPI media_object_Release(IMediaObject *iface)
static
HRESULT
WINAPI
media_object_GetStreamCount
(
IMediaObject
*
iface
,
DWORD
*
input
,
DWORD
*
output
)
{
FIXME
(
"iface %p, input %p, output %p stub!
\n
"
,
iface
,
input
,
output
);
return
E_NOTIMPL
;
TRACE
(
"iface %p, input %p, output %p.
\n
"
,
iface
,
input
,
output
);
if
(
!
input
||
!
output
)
return
E_POINTER
;
*
input
=
*
output
=
1
;
return
S_OK
;
}
static
HRESULT
WINAPI
media_object_GetInputStreamInfo
(
IMediaObject
*
iface
,
DWORD
index
,
DWORD
*
flags
)
...
...
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