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
fcae0bc7
Commit
fcae0bc7
authored
Mar 18, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Query presentation descriptor on reader creation.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1fb58907
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
main.c
dlls/mfreadwrite/main.c
+8
-0
No files found.
dlls/mfreadwrite/main.c
View file @
fcae0bc7
...
...
@@ -76,6 +76,7 @@ typedef struct source_reader
IMFSourceReader
IMFSourceReader_iface
;
LONG
refcount
;
IMFMediaSource
*
source
;
IMFPresentationDescriptor
*
descriptor
;
}
srcreader
;
struct
sink_writer
...
...
@@ -135,6 +136,8 @@ static ULONG WINAPI src_reader_Release(IMFSourceReader *iface)
if
(
!
refcount
)
{
if
(
reader
->
descriptor
)
IMFPresentationDescriptor_Release
(
reader
->
descriptor
);
IMFMediaSource_Release
(
reader
->
source
);
heap_free
(
reader
);
}
...
...
@@ -279,7 +282,12 @@ static HRESULT create_source_reader_from_source(IMFMediaSource *source, IMFAttri
object
->
source
=
source
;
IMFMediaSource_AddRef
(
object
->
source
);
if
(
FAILED
(
hr
=
IMFMediaSource_CreatePresentationDescriptor
(
object
->
source
,
&
object
->
descriptor
)))
goto
failed
;
hr
=
IMFSourceReader_QueryInterface
(
&
object
->
IMFSourceReader_iface
,
riid
,
out
);
failed:
IMFSourceReader_Release
(
&
object
->
IMFSourceReader_iface
);
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