Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
0b1e8d8b
Commit
0b1e8d8b
authored
Aug 10, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qasf: Configure WMReader stream selection in asf_reader_init_stream.
parent
f508be5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
asfreader.c
dlls/qasf/asfreader.c
+17
-0
No files found.
dlls/qasf/asfreader.c
View file @
0b1e8d8b
...
...
@@ -200,16 +200,25 @@ static HRESULT asf_reader_query_interface(struct strmbase_filter *iface, REFIID
static
HRESULT
asf_reader_init_stream
(
struct
strmbase_filter
*
iface
)
{
struct
asf_reader
*
filter
=
impl_from_strmbase_filter
(
iface
);
WMT_STREAM_SELECTION
selections
[
ARRAY_SIZE
(
filter
->
streams
)];
WORD
stream_numbers
[
ARRAY_SIZE
(
filter
->
streams
)];
IWMReaderAdvanced
*
reader_advanced
;
HRESULT
hr
=
S_OK
;
int
i
;
TRACE
(
"iface %p
\n
"
,
iface
);
if
(
FAILED
(
hr
=
IWMReader_QueryInterface
(
filter
->
reader
,
&
IID_IWMReaderAdvanced
,
(
void
**
)
&
reader_advanced
)))
return
hr
;
for
(
i
=
0
;
i
<
filter
->
stream_count
;
++
i
)
{
struct
asf_stream
*
stream
=
filter
->
streams
+
i
;
IWMOutputMediaProps
*
props
;
stream_numbers
[
i
]
=
i
+
1
;
selections
[
i
]
=
WMT_OFF
;
if
(
!
stream
->
source
.
pin
.
peer
)
continue
;
...
...
@@ -240,8 +249,16 @@ static HRESULT asf_reader_init_stream(struct strmbase_filter *iface)
WARN
(
"Failed to start stream %u new segment, hr %#lx
\n
"
,
i
,
hr
);
break
;
}
selections
[
i
]
=
WMT_ON
;
}
if
(
SUCCEEDED
(
hr
)
&&
FAILED
(
hr
=
IWMReaderAdvanced_SetStreamsSelected
(
reader_advanced
,
filter
->
stream_count
,
stream_numbers
,
selections
)))
WARN
(
"Failed to set reader %p stream selection, hr %#lx
\n
"
,
filter
->
reader
,
hr
);
IWMReaderAdvanced_Release
(
reader_advanced
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
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