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
87e4c289
Commit
87e4c289
authored
Oct 25, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Oct 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement IWMProfile::GetStreamCount().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
51b6d455
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
gst_private.h
dlls/winegstreamer/gst_private.h
+2
-0
wm_reader.c
dlls/winegstreamer/wm_reader.c
+8
-2
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+1
-1
No files found.
dlls/winegstreamer/gst_private.h
View file @
87e4c289
...
...
@@ -129,6 +129,8 @@ struct wm_reader
bool
read_thread_shutdown
;
struct
wg_parser
*
wg_parser
;
WORD
stream_count
;
const
struct
wm_reader_ops
*
ops
;
};
...
...
dlls/winegstreamer/wm_reader.c
View file @
87e4c289
...
...
@@ -188,12 +188,16 @@ static HRESULT WINAPI profile_SetDescription(IWMProfile3 *iface, const WCHAR *de
static
HRESULT
WINAPI
profile_GetStreamCount
(
IWMProfile3
*
iface
,
DWORD
*
count
)
{
FIXME
(
"iface %p, count %p, stub!
\n
"
,
iface
,
count
);
struct
wm_reader
*
reader
=
impl_from_IWMProfile3
(
iface
);
TRACE
(
"reader %p, count %p.
\n
"
,
reader
,
count
);
if
(
!
count
)
return
E_INVALIDARG
;
*
count
=
0
;
EnterCriticalSection
(
&
reader
->
cs
);
*
count
=
reader
->
stream_count
;
LeaveCriticalSection
(
&
reader
->
cs
);
return
S_OK
;
}
...
...
@@ -853,6 +857,8 @@ HRESULT wm_reader_open_stream(struct wm_reader *reader, IStream *stream)
goto
out_shutdown_thread
;
}
reader
->
stream_count
=
wg_parser_get_stream_count
(
reader
->
wg_parser
);
LeaveCriticalSection
(
&
reader
->
cs
);
return
S_OK
;
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
87e4c289
...
...
@@ -459,7 +459,7 @@ static void test_sync_reader_streaming(void)
count
=
0xdeadbeef
;
hr
=
IWMProfile_GetStreamCount
(
profile
,
&
count
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
todo_wine
ok
(
count
==
2
,
"Got count %u.
\n
"
,
count
);
ok
(
count
==
2
,
"Got count %u.
\n
"
,
count
);
count
=
0xdeadbeef
;
hr
=
IWMSyncReader_GetOutputCount
(
reader
,
&
count
);
...
...
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