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
0eeb4094
Commit
0eeb4094
authored
Mar 04, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Keep stream descriptor identifier.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d5634ac1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
mediatype.c
dlls/mfplat/mediatype.c
+9
-2
No files found.
dlls/mfplat/mediatype.c
View file @
0eeb4094
...
...
@@ -36,6 +36,7 @@ struct stream_desc
struct
attributes
attributes
;
IMFStreamDescriptor
IMFStreamDescriptor_iface
;
IMFMediaTypeHandler
IMFMediaTypeHandler_iface
;
DWORD
identifier
;
};
static
inline
struct
media_type
*
impl_from_IMFMediaType
(
IMFMediaType
*
iface
)
...
...
@@ -615,9 +616,13 @@ static HRESULT WINAPI stream_descriptor_CopyAllItems(IMFStreamDescriptor *iface,
static
HRESULT
WINAPI
stream_descriptor_GetStreamIdentifier
(
IMFStreamDescriptor
*
iface
,
DWORD
*
identifier
)
{
FIXME
(
"%p, %p.
\n
"
,
iface
,
identifier
);
struct
stream_desc
*
stream_desc
=
impl_from_IMFStreamDescriptor
(
iface
);
return
E_NOTIMPL
;
TRACE
(
"%p, %p.
\n
"
,
iface
,
identifier
);
*
identifier
=
stream_desc
->
identifier
;
return
S_OK
;
}
static
HRESULT
WINAPI
stream_descriptor_GetMediaTypeHandler
(
IMFStreamDescriptor
*
iface
,
IMFMediaTypeHandler
**
handler
)
...
...
@@ -774,6 +779,8 @@ HRESULT WINAPI MFCreateStreamDescriptor(DWORD identifier, DWORD count,
init_attribute_object
(
&
object
->
attributes
,
0
);
object
->
IMFStreamDescriptor_iface
.
lpVtbl
=
&
streamdescriptorvtbl
;
object
->
IMFMediaTypeHandler_iface
.
lpVtbl
=
&
mediatypehandlervtbl
;
object
->
identifier
=
identifier
;
*
descriptor
=
&
object
->
IMFStreamDescriptor_iface
;
return
S_OK
;
...
...
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