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
f508be5f
Commit
f508be5f
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 format in asf_reader_init_stream.
parent
8d369f42
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 @
f508be5f
...
@@ -208,6 +208,7 @@ static HRESULT asf_reader_init_stream(struct strmbase_filter *iface)
...
@@ -208,6 +208,7 @@ static HRESULT asf_reader_init_stream(struct strmbase_filter *iface)
for
(
i
=
0
;
i
<
filter
->
stream_count
;
++
i
)
for
(
i
=
0
;
i
<
filter
->
stream_count
;
++
i
)
{
{
struct
asf_stream
*
stream
=
filter
->
streams
+
i
;
struct
asf_stream
*
stream
=
filter
->
streams
+
i
;
IWMOutputMediaProps
*
props
;
if
(
!
stream
->
source
.
pin
.
peer
)
if
(
!
stream
->
source
.
pin
.
peer
)
continue
;
continue
;
...
@@ -218,6 +219,22 @@ static HRESULT asf_reader_init_stream(struct strmbase_filter *iface)
...
@@ -218,6 +219,22 @@ static HRESULT asf_reader_init_stream(struct strmbase_filter *iface)
break
;
break
;
}
}
if
(
FAILED
(
hr
=
IWMReader_GetOutputFormat
(
filter
->
reader
,
stream
->
index
,
0
,
&
props
)))
{
WARN
(
"Failed to get stream %u output format, hr %#lx
\n
"
,
i
,
hr
);
break
;
}
hr
=
IWMOutputMediaProps_SetMediaType
(
props
,
(
WM_MEDIA_TYPE
*
)
&
stream
->
source
.
pin
.
mt
);
if
(
SUCCEEDED
(
hr
))
hr
=
IWMReader_SetOutputProps
(
filter
->
reader
,
stream
->
index
,
props
);
IWMOutputMediaProps_Release
(
props
);
if
(
FAILED
(
hr
))
{
WARN
(
"Failed to set stream %u output format, hr %#lx
\n
"
,
i
,
hr
);
break
;
}
if
(
FAILED
(
hr
=
IPin_NewSegment
(
stream
->
source
.
pin
.
peer
,
0
,
0
,
1
)))
if
(
FAILED
(
hr
=
IPin_NewSegment
(
stream
->
source
.
pin
.
peer
,
0
,
0
,
1
)))
{
{
WARN
(
"Failed to start stream %u new segment, hr %#lx
\n
"
,
i
,
hr
);
WARN
(
"Failed to start stream %u new segment, hr %#lx
\n
"
,
i
,
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