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
a1a51f54
Commit
a1a51f54
authored
Nov 10, 2021
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Implement IWMSyncReader::GetStreamSelected().
Signed-off-by:
Zebediah Figura
<
zfigura@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3e0a9877
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
4 deletions
+28
-4
gst_private.h
dlls/winegstreamer/gst_private.h
+2
-0
wm_reader.c
dlls/winegstreamer/wm_reader.c
+19
-0
wm_syncreader.c
dlls/winegstreamer/wm_syncreader.c
+7
-4
No files found.
dlls/winegstreamer/gst_private.h
View file @
a1a51f54
...
...
@@ -168,6 +168,8 @@ struct wm_stream *wm_reader_get_stream_by_stream_number(struct wm_reader *reader
WORD
stream_number
);
HRESULT
wm_reader_get_stream_sample
(
struct
wm_stream
*
stream
,
INSSBuffer
**
sample
,
QWORD
*
pts
,
QWORD
*
duration
,
DWORD
*
flags
);
HRESULT
wm_reader_get_stream_selection
(
struct
wm_reader
*
reader
,
WORD
stream_number
,
WMT_STREAM_SELECTION
*
selection
);
void
wm_reader_init
(
struct
wm_reader
*
reader
,
const
struct
wm_reader_ops
*
ops
);
HRESULT
wm_reader_open_file
(
struct
wm_reader
*
reader
,
const
WCHAR
*
filename
);
HRESULT
wm_reader_open_stream
(
struct
wm_reader
*
reader
,
IStream
*
stream
);
...
...
dlls/winegstreamer/wm_reader.c
View file @
a1a51f54
...
...
@@ -1872,6 +1872,25 @@ HRESULT wm_reader_set_streams_selected(struct wm_reader *reader, WORD count,
return
S_OK
;
}
HRESULT
wm_reader_get_stream_selection
(
struct
wm_reader
*
reader
,
WORD
stream_number
,
WMT_STREAM_SELECTION
*
selection
)
{
struct
wm_stream
*
stream
;
EnterCriticalSection
(
&
reader
->
cs
);
if
(
!
(
stream
=
wm_reader_get_stream_by_stream_number
(
reader
,
stream_number
)))
{
LeaveCriticalSection
(
&
reader
->
cs
);
return
E_INVALIDARG
;
}
*
selection
=
stream
->
selection
;
LeaveCriticalSection
(
&
reader
->
cs
);
return
S_OK
;
}
void
wm_reader_init
(
struct
wm_reader
*
reader
,
const
struct
wm_reader_ops
*
ops
)
{
reader
->
IWMHeaderInfo3_iface
.
lpVtbl
=
&
header_info_vtbl
;
...
...
dlls/winegstreamer/wm_syncreader.c
View file @
a1a51f54
...
...
@@ -221,11 +221,14 @@ static HRESULT WINAPI WMSyncReader_GetStreamNumberForOutput(IWMSyncReader2 *ifac
return
S_OK
;
}
static
HRESULT
WINAPI
WMSyncReader_GetStreamSelected
(
IWMSyncReader2
*
iface
,
WORD
stream_num
,
WMT_STREAM_SELECTION
*
selection
)
static
HRESULT
WINAPI
WMSyncReader_GetStreamSelected
(
IWMSyncReader2
*
iface
,
WORD
stream_number
,
WMT_STREAM_SELECTION
*
selection
)
{
struct
sync_reader
*
This
=
impl_from_IWMSyncReader2
(
iface
);
FIXME
(
"(%p)->(%d %p): stub!
\n
"
,
This
,
stream_num
,
selection
);
return
E_NOTIMPL
;
struct
sync_reader
*
reader
=
impl_from_IWMSyncReader2
(
iface
);
TRACE
(
"reader %p, stream_number %u, selection %p.
\n
"
,
reader
,
stream_number
,
selection
);
return
wm_reader_get_stream_selection
(
&
reader
->
reader
,
stream_number
,
selection
);
}
static
HRESULT
WINAPI
WMSyncReader_Open
(
IWMSyncReader2
*
iface
,
const
WCHAR
*
filename
)
...
...
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