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
aad791e9
Commit
aad791e9
authored
Nov 18, 2022
by
Ziqing Hui
Committed by
Alexandre Julliard
Nov 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement profile_GetStreamByNumber.
parent
64debc9b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
8 deletions
+12
-8
wm_reader.c
dlls/winegstreamer/wm_reader.c
+12
-2
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+0
-6
No files found.
dlls/winegstreamer/wm_reader.c
View file @
aad791e9
...
...
@@ -777,8 +777,18 @@ static HRESULT WINAPI profile_GetStream(IWMProfile3 *iface, DWORD index, IWMStre
static
HRESULT
WINAPI
profile_GetStreamByNumber
(
IWMProfile3
*
iface
,
WORD
stream_number
,
IWMStreamConfig
**
config
)
{
FIXME
(
"iface %p, stream_number %u, config %p, stub!
\n
"
,
iface
,
stream_number
,
config
);
return
E_NOTIMPL
;
HRESULT
hr
;
TRACE
(
"iface %p, stream_number %u, config %p.
\n
"
,
iface
,
stream_number
,
config
);
if
(
!
stream_number
)
return
NS_E_NO_STREAM
;
hr
=
profile_GetStream
(
iface
,
stream_number
-
1
,
config
);
if
(
hr
==
E_INVALIDARG
)
hr
=
NS_E_NO_STREAM
;
return
hr
;
}
static
HRESULT
WINAPI
profile_RemoveStream
(
IWMProfile3
*
iface
,
IWMStreamConfig
*
config
)
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
aad791e9
...
...
@@ -1205,14 +1205,10 @@ static void test_sync_reader_streaming(void)
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
hr
=
IWMProfile_GetStreamByNumber
(
profile
,
i
+
1
,
&
config2
);
todo_wine
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
{
ok
(
config2
!=
config
,
"Expected different objects.
\n
"
);
ref
=
IWMStreamConfig_Release
(
config2
);
ok
(
!
ref
,
"Got outstanding refcount %ld.
\n
"
,
ref
);
}
stream_numbers
[
i
]
=
0xdead
;
hr
=
IWMStreamConfig_GetStreamNumber
(
config
,
&
stream_numbers
[
i
]);
...
...
@@ -1226,10 +1222,8 @@ static void test_sync_reader_streaming(void)
hr
=
IWMProfile_GetStream
(
profile
,
2
,
&
config
);
ok
(
hr
==
E_INVALIDARG
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IWMProfile_GetStreamByNumber
(
profile
,
0
,
&
config
);
todo_wine
ok
(
hr
==
NS_E_NO_STREAM
,
"Got hr %#lx.
\n
"
,
hr
);
hr
=
IWMProfile_GetStreamByNumber
(
profile
,
3
,
&
config
);
todo_wine
ok
(
hr
==
NS_E_NO_STREAM
,
"Got hr %#lx.
\n
"
,
hr
);
while
(
!
eos
[
0
]
||
!
eos
[
1
])
...
...
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