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
09aef50a
Commit
09aef50a
authored
Sep 09, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 13, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winegstreamer: Unconditionally assign new context for ASYNC_OP_START.
parent
9808fd97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
wm_asyncreader.c
dlls/winegstreamer/wm_asyncreader.c
+1
-2
wmvcore.c
dlls/wmvcore/tests/wmvcore.c
+0
-7
No files found.
dlls/winegstreamer/wm_asyncreader.c
View file @
09aef50a
...
...
@@ -199,13 +199,12 @@ static DWORD WINAPI async_reader_callback_thread(void *arg)
struct
async_op
*
op
=
LIST_ENTRY
(
entry
,
struct
async_op
,
entry
);
list_remove
(
&
op
->
entry
);
if
(
op
->
u
.
start
.
context
)
reader
->
context
=
op
->
u
.
start
.
context
;
hr
=
list_empty
(
&
reader
->
async_ops
)
?
S_OK
:
E_ABORT
;
switch
(
op
->
type
)
{
case
ASYNC_OP_START
:
{
reader
->
context
=
op
->
u
.
start
.
context
;
LeaveCriticalSection
(
&
reader
->
callback_cs
);
IWMReaderCallback_OnStatus
(
reader
->
callback
,
WMT_STARTED
,
hr
,
WMT_TYPE_DWORD
,
(
BYTE
*
)
&
zero
,
reader
->
context
);
...
...
dlls/wmvcore/tests/wmvcore.c
View file @
09aef50a
...
...
@@ -1867,7 +1867,6 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
callback
->
callback_tid
=
GetCurrentThreadId
();
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
todo_wine_if
(
!
callback
->
expect_context
)
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ret
=
WaitForSingleObject
(
callback
->
expect_started
,
100
);
ok
(
!
ret
,
"Wait timed out.
\n
"
);
...
...
@@ -1881,7 +1880,6 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
todo_wine_if
(
!
callback
->
expect_context
)
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
ret
=
WaitForSingleObject
(
callback
->
expect_stopped
,
100
);
ok
(
!
ret
,
"Wait timed out.
\n
"
);
...
...
@@ -1891,7 +1889,6 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
case
WMT_CLOSED
:
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
todo_wine_if
(
!
callback
->
expect_context
)
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
++
callback
->
closed_count
;
break
;
...
...
@@ -1900,7 +1897,6 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
todo_wine_if
(
!
callback
->
expect_context
)
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
++
callback
->
end_of_streaming_count
;
break
;
...
...
@@ -1909,7 +1905,6 @@ static HRESULT WINAPI callback_OnStatus(IWMReaderCallback *iface, WMT_STATUS sta
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
type
==
WMT_TYPE_DWORD
,
"Got type %#x.
\n
"
,
type
);
ok
(
!*
(
DWORD
*
)
value
,
"Got value %#lx.
\n
"
,
*
(
DWORD
*
)
value
);
todo_wine_if
(
!
callback
->
expect_context
)
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
if
(
callback
->
all_streams_off
)
ok
(
callback
->
sample_count
==
0
,
"Got %u samples.
\n
"
,
callback
->
sample_count
);
...
...
@@ -2014,7 +2009,6 @@ static HRESULT WINAPI callback_OnSample(IWMReaderCallback *iface, DWORD output,
ok
(
callback
->
output_tid
[
1
-
output
]
!=
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
}
todo_wine_if
(
!
callback
->
expect_context
)
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
check_async_sample
(
callback
,
sample
);
...
...
@@ -2114,7 +2108,6 @@ static HRESULT WINAPI callback_advanced_OnTime(IWMReaderCallbackAdvanced *iface,
ok
(
callback
->
callback_tid
==
GetCurrentThreadId
(),
"got wrong thread
\n
"
);
ok
(
time
==
callback
->
expect_ontime
,
"Got time %I64u.
\n
"
,
time
);
todo_wine_if
(
!
callback
->
expect_context
)
ok
(
context
==
(
void
*
)
callback
->
expect_context
,
"Got unexpected context %p.
\n
"
,
context
);
SetEvent
(
callback
->
ontime_event
);
return
S_OK
;
...
...
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