Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6e6d73b8
Commit
6e6d73b8
authored
Nov 17, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Nov 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream/tests: Commit the allocator directly.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9685f12d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
amstream.c
dlls/amstream/tests/amstream.c
+12
-4
No files found.
dlls/amstream/tests/amstream.c
View file @
6e6d73b8
...
...
@@ -1008,9 +1008,13 @@ static void testfilter_destroy(struct strmbase_filter *iface)
static
HRESULT
testfilter_init_stream
(
struct
strmbase_filter
*
iface
)
{
struct
testfilter
*
filter
=
impl_from_BaseFilter
(
iface
);
HRESULT
hr
;
if
(
SUCCEEDED
(
filter
->
init_stream_hr
))
BaseOutputPinImpl_Active
(
&
filter
->
source
);
if
(
SUCCEEDED
(
filter
->
init_stream_hr
)
&&
filter
->
source
.
pin
.
peer
)
{
hr
=
IMemAllocator_Commit
(
filter
->
source
.
pAllocator
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
}
return
filter
->
init_stream_hr
;
}
...
...
@@ -1018,9 +1022,13 @@ static HRESULT testfilter_init_stream(struct strmbase_filter *iface)
static
HRESULT
testfilter_cleanup_stream
(
struct
strmbase_filter
*
iface
)
{
struct
testfilter
*
filter
=
impl_from_BaseFilter
(
iface
);
HRESULT
hr
;
if
(
SUCCEEDED
(
filter
->
cleanup_stream_hr
))
BaseOutputPinImpl_Inactive
(
&
filter
->
source
);
if
(
SUCCEEDED
(
filter
->
cleanup_stream_hr
)
&&
filter
->
source
.
pin
.
peer
)
{
hr
=
IMemAllocator_Decommit
(
filter
->
source
.
pAllocator
);
ok
(
hr
==
S_OK
,
"Got hr %#x.
\n
"
,
hr
);
}
return
filter
->
cleanup_stream_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