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
d100d92f
Commit
d100d92f
authored
Feb 03, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat/allocator: Keep a reference to initialization attributes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
467a96e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
sample.c
dlls/mfplat/sample.c
+8
-1
mfplat.c
dlls/mfplat/tests/mfplat.c
+0
-1
No files found.
dlls/mfplat/sample.c
View file @
d100d92f
...
...
@@ -75,6 +75,8 @@ struct sample_allocator
unsigned
int
buffer_count
;
}
frame_desc
;
IMFAttributes
*
attributes
;
unsigned
int
free_sample_count
;
unsigned
int
cold_sample_count
;
struct
list
free_samples
;
...
...
@@ -1129,6 +1131,8 @@ static ULONG WINAPI sample_allocator_Release(IMFVideoSampleAllocatorEx *iface)
IDirect3DDeviceManager9_Release
(
allocator
->
d3d9_device_manager
);
if
(
allocator
->
dxgi_device_manager
)
IMFDXGIDeviceManager_Release
(
allocator
->
dxgi_device_manager
);
if
(
allocator
->
attributes
)
IMFAttributes_Release
(
allocator
->
attributes
);
sample_allocator_release_samples
(
allocator
);
DeleteCriticalSection
(
&
allocator
->
cs
);
heap_free
(
allocator
);
...
...
@@ -1348,7 +1352,10 @@ static HRESULT sample_allocator_initialize(struct sample_allocator *allocator, u
max_sample_count
=
max
(
1
,
max_sample_count
);
if
(
attributes
)
FIXME
(
"Initialization attributes ignored.
\n
"
);
{
allocator
->
attributes
=
attributes
;
IMFAttributes_AddRef
(
allocator
->
attributes
);
}
allocator
->
frame_desc
.
d3d9_format
=
subtype
.
Data1
;
allocator
->
frame_desc
.
dxgi_format
=
MFMapDX9FormatToDXGIFormat
(
allocator
->
frame_desc
.
d3d9_format
);
...
...
dlls/mfplat/tests/mfplat.c
View file @
d100d92f
...
...
@@ -6442,7 +6442,6 @@ todo_wine
EXPECT_REF
(
attributes
,
1
);
hr
=
IMFVideoSampleAllocatorEx_InitializeSampleAllocatorEx
(
allocatorex
,
0
,
0
,
attributes
,
video_type
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
todo_wine
EXPECT_REF
(
attributes
,
2
);
count
=
0
;
...
...
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