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
4e410f07
Commit
4e410f07
authored
Aug 17, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite/writer: Reference user callback.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
862ac14e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
writer.c
dlls/mfreadwrite/writer.c
+10
-0
No files found.
dlls/mfreadwrite/writer.c
View file @
4e410f07
...
...
@@ -83,6 +83,8 @@ struct sink_writer
HRESULT
status
;
MF_SINK_WRITER_STATISTICS
stats
;
IMFSinkWriterCallback
*
callback
;
CRITICAL_SECTION
cs
;
};
...
...
@@ -215,6 +217,8 @@ static ULONG WINAPI sink_writer_Release(IMFSinkWriter *iface)
IMFPresentationClock_Release
(
writer
->
clock
);
if
(
writer
->
sink
)
IMFMediaSink_Release
(
writer
->
sink
);
if
(
writer
->
callback
)
IMFSinkWriterCallback_Release
(
writer
->
callback
);
for
(
i
=
0
;
i
<
writer
->
streams
.
count
;
++
i
)
{
struct
stream
*
stream
=
&
writer
->
streams
.
items
[
i
];
...
...
@@ -885,6 +889,12 @@ HRESULT create_sink_writer_from_sink(IMFMediaSink *sink, IMFAttributes *attribut
object
->
stats
.
cb
=
sizeof
(
object
->
stats
);
InitializeCriticalSection
(
&
object
->
cs
);
if
(
attributes
)
{
IMFAttributes_GetUnknown
(
attributes
,
&
MF_SINK_WRITER_ASYNC_CALLBACK
,
&
IID_IMFSinkWriterCallback
,
(
void
**
)
&
object
->
callback
);
}
if
(
FAILED
(
hr
=
sink_writer_initialize_existing_streams
(
object
,
sink
)))
{
IMFSinkWriter_Release
(
&
object
->
IMFSinkWriter_iface
);
...
...
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