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
06fa9bd3
Commit
06fa9bd3
authored
Feb 21, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 24, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp3dmod: Implement IMediaObject::GetStreamCount().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c4ebd986
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
mp3dmod.c
dlls/mp3dmod/mp3dmod.c
+4
-2
mp3dmod.c
dlls/mp3dmod/tests/mp3dmod.c
+19
-0
No files found.
dlls/mp3dmod/mp3dmod.c
View file @
06fa9bd3
...
...
@@ -136,9 +136,11 @@ static ULONG WINAPI MediaObject_Release(IMediaObject *iface)
static
HRESULT
WINAPI
MediaObject_GetStreamCount
(
IMediaObject
*
iface
,
DWORD
*
input
,
DWORD
*
output
)
{
FIXME
(
"(%p)->(%p, %p) stub!
\n
"
,
iface
,
input
,
output
);
TRACE
(
"iface %p, input %p, output %p.
\n
"
,
iface
,
input
,
output
);
return
E_NOTIMPL
;
*
input
=
*
output
=
1
;
return
S_OK
;
}
static
HRESULT
WINAPI
MediaObject_GetInputStreamInfo
(
IMediaObject
*
iface
,
DWORD
index
,
DWORD
*
flags
)
...
...
dlls/mp3dmod/tests/mp3dmod.c
View file @
06fa9bd3
...
...
@@ -286,6 +286,24 @@ static void test_aggregation(void)
ok
(
hr
==
E_NOINTERFACE
,
"got %#x
\n
"
,
hr
);
}
static
void
test_stream_info
(
void
)
{
DWORD
input_count
,
output_count
,
flags
;
IMediaObject
*
dmo
;
HRESULT
hr
;
hr
=
CoCreateInstance
(
&
CLSID_CMP3DecMediaObject
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IMediaObject
,
(
void
**
)
&
dmo
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
hr
=
IMediaObject_GetStreamCount
(
dmo
,
&
input_count
,
&
output_count
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
ok
(
input_count
==
1
,
"Got input count %u.
\n
"
,
input_count
);
ok
(
output_count
==
1
,
"Got output count %u.
\n
"
,
output_count
);
IMediaObject_Release
(
dmo
);
}
START_TEST
(
mp3dmod
)
{
IMediaObject
*
dmo
;
...
...
@@ -304,6 +322,7 @@ START_TEST(mp3dmod)
test_convert
();
test_aggregation
();
test_stream_info
();
CoUninitialize
();
}
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