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
a69c7a8a
Commit
a69c7a8a
authored
Nov 27, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Use correct index in MediaStreamFilter's IEnumPins::Next().
parent
150463b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
filter.c
dlls/amstream/filter.c
+1
-1
amstream.c
dlls/amstream/tests/amstream.c
+4
-4
No files found.
dlls/amstream/filter.c
View file @
a69c7a8a
...
...
@@ -94,7 +94,7 @@ static HRESULT WINAPI enum_pins_Next(IEnumPins *iface, ULONG count, IPin **pins,
for
(
i
=
0
;
i
<
count
&&
enum_pins
->
index
<
enum_pins
->
count
;
++
i
)
{
IPin_AddRef
(
pins
[
i
]
=
enum_pins
->
pins
[
i
]);
IPin_AddRef
(
pins
[
i
]
=
enum_pins
->
pins
[
enum_pins
->
index
]);
enum_pins
->
index
++
;
}
...
...
dlls/amstream/tests/amstream.c
View file @
a69c7a8a
...
...
@@ -1921,13 +1921,13 @@ static void test_enum_pins(void)
hr
=
IEnumPins_Next
(
enum1
,
1
,
pins
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
pins
[
0
]
==
pin1
,
"Expected pin %p, got %p.
\n
"
,
pin1
,
pins
[
0
]);
ok
(
pins
[
0
]
==
pin1
,
"Expected pin %p, got %p.
\n
"
,
pin1
,
pins
[
0
]);
ref
=
get_refcount
(
filter
);
ok
(
ref
==
4
,
"Got unexpected refcount %ld.
\n
"
,
ref
);
ref
=
get_refcount
(
enum1
);
ok
(
ref
==
1
,
"Got unexpected refcount %ld.
\n
"
,
ref
);
ref
=
get_refcount
(
pin1
);
todo_wine
ok
(
ref
==
5
,
"Got unexpected refcount %ld.
\n
"
,
ref
);
ok
(
ref
==
5
,
"Got unexpected refcount %ld.
\n
"
,
ref
);
IPin_Release
(
pins
[
0
]);
hr
=
IEnumPins_Next
(
enum1
,
1
,
pins
,
NULL
);
...
...
@@ -1945,7 +1945,7 @@ static void test_enum_pins(void)
hr
=
IEnumPins_Next
(
enum1
,
1
,
pins
,
&
count
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
ok
(
count
==
1
,
"Got count %lu.
\n
"
,
count
);
todo_wine
ok
(
pins
[
0
]
==
pin1
,
"Expected pin %p, got %p.
\n
"
,
pin1
,
pins
[
0
]);
ok
(
pins
[
0
]
==
pin1
,
"Expected pin %p, got %p.
\n
"
,
pin1
,
pins
[
0
]);
IPin_Release
(
pins
[
0
]);
hr
=
IEnumPins_Reset
(
enum1
);
...
...
@@ -1984,7 +1984,7 @@ static void test_enum_pins(void)
hr
=
IEnumPins_Next
(
enum2
,
1
,
pins
,
NULL
);
ok
(
hr
==
S_OK
,
"Got hr %#lx.
\n
"
,
hr
);
todo_wine
ok
(
pins
[
0
]
==
pin1
,
"Expected pin %p, got %p.
\n
"
,
pin1
,
pins
[
0
]);
ok
(
pins
[
0
]
==
pin1
,
"Expected pin %p, got %p.
\n
"
,
pin1
,
pins
[
0
]);
IPin_Release
(
pins
[
0
]);
IEnumPins_Release
(
enum2
);
...
...
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