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
b20c478b
Commit
b20c478b
authored
May 17, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfmediaengine: Keep device manager reference.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c7023042
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
main.c
dlls/mfmediaengine/main.c
+10
-0
No files found.
dlls/mfmediaengine/main.c
View file @
b20c478b
...
...
@@ -93,6 +93,8 @@ struct media_engine
LONG
refcount
;
IMFMediaEngineNotify
*
callback
;
IMFAttributes
*
attributes
;
IMFDXGIDeviceManager
*
device_manager
;
HANDLE
device_handle
;
enum
media_engine_mode
mode
;
unsigned
int
flags
;
double
playback_rate
;
...
...
@@ -974,6 +976,11 @@ static void free_media_engine(struct media_engine *engine)
IMFAttributes_Release
(
engine
->
attributes
);
if
(
engine
->
resolver
)
IMFSourceResolver_Release
(
engine
->
resolver
);
if
(
engine
->
device_manager
)
{
IMFDXGIDeviceManager_CloseDeviceHandle
(
engine
->
device_manager
,
engine
->
device_handle
);
IMFDXGIDeviceManager_Release
(
engine
->
device_manager
);
}
SysFreeString
(
engine
->
current_source
);
DeleteCriticalSection
(
&
engine
->
cs
);
free
(
engine
->
video_frame
.
buffer
);
...
...
@@ -1878,6 +1885,9 @@ static HRESULT init_media_engine(DWORD flags, IMFAttributes *attributes, struct
if
(
FAILED
(
hr
))
return
hr
;
IMFAttributes_GetUnknown
(
attributes
,
&
MF_MEDIA_ENGINE_DXGI_MANAGER
,
&
IID_IMFDXGIDeviceManager
,
(
void
**
)
&
engine
->
device_manager
);
if
(
FAILED
(
hr
=
MFCreateMediaSession
(
NULL
,
&
engine
->
session
)))
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