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
00a77f01
Commit
00a77f01
authored
Nov 18, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 23, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmime: Correctly requeue messages with changed time.
parent
fcf82e33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
performance.c
dlls/dmime/performance.c
+4
-6
No files found.
dlls/dmime/performance.c
View file @
00a77f01
...
...
@@ -147,7 +147,7 @@ static HRESULT performance_process_message(struct performance *This, DMUS_PMSG *
return
hr
;
}
static
HRESULT
performance_queue_message
(
struct
performance
*
This
,
struct
message
*
message
,
struct
list
*
hint
)
static
HRESULT
performance_queue_message
(
struct
performance
*
This
,
struct
message
*
message
)
{
static
const
DWORD
delivery_flags
=
DMUS_PMSGF_TOOL_IMMEDIATE
|
DMUS_PMSGF_TOOL_QUEUE
|
DMUS_PMSGF_TOOL_ATTIME
;
struct
message
*
prev
;
...
...
@@ -160,7 +160,7 @@ static HRESULT performance_queue_message(struct performance *This, struct messag
return
hr
;
}
LIST_FOR_EACH_ENTRY_REV
(
prev
,
hint
?
hint
:
&
This
->
messages
,
struct
message
,
entry
)
LIST_FOR_EACH_ENTRY_REV
(
prev
,
&
This
->
messages
,
struct
message
,
entry
)
{
if
(
&
prev
->
entry
==
&
This
->
messages
)
break
;
if
(
prev
->
msg
.
rtTime
<=
message
->
msg
.
rtTime
)
break
;
...
...
@@ -185,20 +185,18 @@ static DWORD WINAPI message_thread_proc(void *args)
{
DWORD
timeout
=
INFINITE
;
struct
message
*
message
;
struct
list
*
next
;
if
(
!
(
message
=
performance_get_message
(
This
,
&
timeout
)))
{
SleepConditionVariableCS
(
&
This
->
cond
,
&
This
->
safe
,
timeout
);
continue
;
}
next
=
message
->
entry
.
next
;
list_remove
(
&
message
->
entry
);
list_init
(
&
message
->
entry
);
hr
=
performance_process_message
(
This
,
&
message
->
msg
);
if
(
hr
==
DMUS_S_REQUEUE
)
performance_queue_message
(
This
,
message
,
next
);
if
(
hr
==
DMUS_S_REQUEUE
)
performance_queue_message
(
This
,
message
);
}
LeaveCriticalSection
(
&
This
->
safe
);
...
...
@@ -841,7 +839,7 @@ static HRESULT WINAPI performance_SendPMsg(IDirectMusicPerformance8 *iface, DMUS
msg
->
dwFlags
|=
DMUS_PMSGF_REFTIME
;
}
hr
=
performance_queue_message
(
This
,
message
,
NULL
);
hr
=
performance_queue_message
(
This
,
message
);
}
done:
...
...
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