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
42edc14e
Commit
42edc14e
authored
Apr 03, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfreadwrite: Move source shutdown mode to reader flags.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
eb927dbb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
reader.c
dlls/mfreadwrite/reader.c
+4
-2
No files found.
dlls/mfreadwrite/reader.c
View file @
42edc14e
...
...
@@ -134,6 +134,7 @@ struct source_reader_async_command
enum
source_reader_flags
{
SOURCE_READER_FLUSHING
=
0x1
,
SOURCE_READER_SHUTDOWN_ON_RELEASE
=
0x2
,
};
struct
source_reader
...
...
@@ -148,7 +149,6 @@ struct source_reader
DWORD
first_audio_stream_index
;
DWORD
first_video_stream_index
;
IMFSourceReaderCallback
*
async_callback
;
BOOL
shutdown_on_release
;
unsigned
int
flags
;
enum
media_source_state
source_state
;
struct
media_stream
*
streams
;
...
...
@@ -1186,7 +1186,7 @@ static ULONG WINAPI src_reader_Release(IMFSourceReader *iface)
{
if
(
reader
->
async_callback
)
IMFSourceReaderCallback_Release
(
reader
->
async_callback
);
if
(
reader
->
shutdown_on_release
)
if
(
reader
->
flags
&
SOURCE_READER_SHUTDOWN_ON_RELEASE
)
IMFMediaSource_Shutdown
(
reader
->
source
);
if
(
reader
->
descriptor
)
IMFPresentationDescriptor_Release
(
reader
->
descriptor
);
...
...
@@ -1917,6 +1917,8 @@ static HRESULT create_source_reader_from_source(IMFMediaSource *source, IMFAttri
object
->
async_commands_callback
.
lpVtbl
=
&
async_commands_callback_vtbl
;
object
->
refcount
=
1
;
list_init
(
&
object
->
responses
);
if
(
shutdown_on_release
)
object
->
flags
|=
SOURCE_READER_SHUTDOWN_ON_RELEASE
;
object
->
source
=
source
;
IMFMediaSource_AddRef
(
object
->
source
);
InitializeCriticalSection
(
&
object
->
cs
);
...
...
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