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
2d834c47
Commit
2d834c47
authored
Apr 09, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Keep media stream id for event matching.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eca601d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
main.c
dlls/mfreadwrite/main.c
+4
-0
No files found.
dlls/mfreadwrite/main.c
View file @
2d834c47
...
@@ -75,6 +75,7 @@ HRESULT WINAPI DllUnregisterServer(void)
...
@@ -75,6 +75,7 @@ HRESULT WINAPI DllUnregisterServer(void)
struct
media_stream
struct
media_stream
{
{
IMFMediaType
*
current
;
IMFMediaType
*
current
;
DWORD
id
;
};
};
typedef
struct
source_reader
typedef
struct
source_reader
...
@@ -644,6 +645,9 @@ static HRESULT create_source_reader_from_source(IMFMediaSource *source, IMFAttri
...
@@ -644,6 +645,9 @@ static HRESULT create_source_reader_from_source(IMFMediaSource *source, IMFAttri
if
(
FAILED
(
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
object
->
descriptor
,
i
,
&
selected
,
&
sd
)))
if
(
FAILED
(
hr
=
IMFPresentationDescriptor_GetStreamDescriptorByIndex
(
object
->
descriptor
,
i
,
&
selected
,
&
sd
)))
break
;
break
;
if
(
FAILED
(
hr
=
IMFStreamDescriptor_GetStreamIdentifier
(
sd
,
&
object
->
streams
[
i
].
id
)))
WARN
(
"Failed to get stream identifier, hr %#x.
\n
"
,
hr
);
hr
=
IMFStreamDescriptor_GetMediaTypeHandler
(
sd
,
&
handler
);
hr
=
IMFStreamDescriptor_GetMediaTypeHandler
(
sd
,
&
handler
);
IMFStreamDescriptor_Release
(
sd
);
IMFStreamDescriptor_Release
(
sd
);
if
(
FAILED
(
hr
))
if
(
FAILED
(
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