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
82b1cc3c
Commit
82b1cc3c
authored
Jun 01, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Jun 16, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Pass a struct wg_parser_stream to media_stream_create.
parent
694c3345
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
media_source.c
dlls/winegstreamer/media_source.c
+6
-6
No files found.
dlls/winegstreamer/media_source.c
View file @
82b1cc3c
...
...
@@ -881,13 +881,12 @@ static const IMFMediaStreamVtbl media_stream_vtbl =
};
static
HRESULT
media_stream_create
(
IMFMediaSource
*
source
,
DWORD
id
,
struct
media_stream
**
out
)
struct
wg_parser_stream
*
wg_stream
,
struct
media_stream
**
out
)
{
struct
wg_parser
*
wg_parser
=
impl_from_IMFMediaSource
(
source
)
->
wg_parser
;
struct
media_stream
*
object
;
HRESULT
hr
;
TRACE
(
"source %p, id %lu
.
\n
"
,
source
,
id
);
TRACE
(
"source %p, id %lu
, wg_stream %p.
\n
"
,
source
,
id
,
wg_stream
);
if
(
!
(
object
=
calloc
(
1
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
...
...
@@ -907,7 +906,7 @@ static HRESULT media_stream_create(IMFMediaSource *source, DWORD id,
object
->
active
=
TRUE
;
object
->
eos
=
FALSE
;
object
->
wg_stream
=
wg_
parser_get_stream
(
wg_parser
,
id
)
;
object
->
wg_stream
=
wg_
stream
;
TRACE
(
"Created stream object %p.
\n
"
,
object
);
...
...
@@ -1599,9 +1598,10 @@ static HRESULT media_source_constructor(IMFByteStream *bytestream, struct media_
for
(
i
=
0
;
i
<
stream_count
;
++
i
)
{
struct
wg_parser_stream
*
wg_stream
=
wg_parser_get_stream
(
object
->
wg_parser
,
i
);
struct
media_stream
*
stream
;
if
(
FAILED
(
hr
=
media_stream_create
(
&
object
->
IMFMediaSource_iface
,
i
,
&
stream
)))
if
(
FAILED
(
hr
=
media_stream_create
(
&
object
->
IMFMediaSource_iface
,
i
,
wg_stream
,
&
stream
)))
goto
fail
;
if
(
FAILED
(
hr
=
media_stream_init_desc
(
stream
)))
{
...
...
@@ -1612,7 +1612,7 @@ static HRESULT media_source_constructor(IMFByteStream *bytestream, struct media_
goto
fail
;
}
object
->
duration
=
max
(
object
->
duration
,
wg_parser_stream_get_duration
(
stream
->
wg_stream
));
object
->
duration
=
max
(
object
->
duration
,
wg_parser_stream_get_duration
(
wg_stream
));
IMFStreamDescriptor_AddRef
(
stream
->
descriptor
);
object
->
descriptors
[
i
]
=
stream
->
descriptor
;
object
->
streams
[
i
]
=
stream
;
...
...
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