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
ce647555
Commit
ce647555
authored
Nov 16, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Dec 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmvcore/tests: Fix OnStreamSample stream number checks.
parent
debe249a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+6
-5
No files found.
dlls/wmvcore/tests/wmvcore.c
View file @
ce647555
...
...
@@ -2101,6 +2101,7 @@ static HRESULT WINAPI callback_advanced_OnStreamSample(IWMReaderCallbackAdvanced
{
struct
callback
*
callback
=
impl_from_IWMReaderCallbackAdvanced
(
iface
);
struct
teststream
*
stream
=
callback
->
stream
;
DWORD
output
=
2
-
stream_number
;
if
(
winetest_debug
>
1
)
trace
(
"%lu: %04lx: IWMReaderCallbackAdvanced::OnStreamSample(stream %u, pts %I64u, duration %I64u, flags %#lx)
\n
"
,
...
...
@@ -2118,15 +2119,15 @@ static HRESULT WINAPI callback_advanced_OnStreamSample(IWMReaderCallbackAdvanced
callback
->
last_pts
=
pts
;
}
if
(
!
callback
->
output_tid
[
stream_number
-
1
])
callback
->
output_tid
[
stream_number
-
1
]
=
GetCurrentThreadId
();
if
(
!
callback
->
output_tid
[
output
])
callback
->
output_tid
[
output
]
=
GetCurrentThreadId
();
else
ok
(
callback
->
output_tid
[
stream_number
-
1
]
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
callback
->
output_tid
[
output
]
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
if
(
callback
->
dedicated_threads
&&
callback
->
output_tid
[
2
-
stream_number
])
if
(
callback
->
dedicated_threads
&&
callback
->
output_tid
[
1
-
output
])
{
todo_wine
ok
(
callback
->
output_tid
[
2
-
stream_number
]
!=
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
callback
->
output_tid
[
1
-
output
]
!=
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
}
if
(
stream
)
...
...
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