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
bd3ae4a0
Commit
bd3ae4a0
authored
Mar 02, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Use underlying work queue calls more to get rid of duplicated traces.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
774a6bd1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
queue.c
dlls/mfplat/queue.c
+13
-13
No files found.
dlls/mfplat/queue.c
View file @
bd3ae4a0
...
...
@@ -44,17 +44,17 @@ HRESULT WINAPI MFAllocateWorkQueue(DWORD *queue)
*/
HRESULT
WINAPI
MFPutWorkItem
(
DWORD
queue
,
IMFAsyncCallback
*
callback
,
IUnknown
*
state
)
{
I
MF
AsyncResult
*
result
;
I
Rtwq
AsyncResult
*
result
;
HRESULT
hr
;
TRACE
(
"%#x, %p, %p.
\n
"
,
queue
,
callback
,
state
);
if
(
FAILED
(
hr
=
MFCreateAsyncResult
(
NULL
,
callback
,
state
,
&
result
)))
if
(
FAILED
(
hr
=
RtwqCreateAsyncResult
(
NULL
,
(
IRtwqAsyncCallback
*
)
callback
,
state
,
&
result
)))
return
hr
;
hr
=
MFPutWorkItemEx2
(
queue
,
0
,
result
);
hr
=
RtwqPutWorkItem
(
queue
,
0
,
result
);
I
MF
AsyncResult_Release
(
result
);
I
Rtwq
AsyncResult_Release
(
result
);
return
hr
;
}
...
...
@@ -64,17 +64,17 @@ HRESULT WINAPI MFPutWorkItem(DWORD queue, IMFAsyncCallback *callback, IUnknown *
*/
HRESULT
WINAPI
MFPutWorkItem2
(
DWORD
queue
,
LONG
priority
,
IMFAsyncCallback
*
callback
,
IUnknown
*
state
)
{
I
MF
AsyncResult
*
result
;
I
Rtwq
AsyncResult
*
result
;
HRESULT
hr
;
TRACE
(
"%#x, %d, %p, %p.
\n
"
,
queue
,
priority
,
callback
,
state
);
if
(
FAILED
(
hr
=
MFCreateAsyncResult
(
NULL
,
callback
,
state
,
&
result
)))
if
(
FAILED
(
hr
=
RtwqCreateAsyncResult
(
NULL
,
(
IRtwqAsyncCallback
*
)
callback
,
state
,
&
result
)))
return
hr
;
hr
=
MFPutWorkItemEx2
(
queue
,
priority
,
result
);
hr
=
RtwqPutWorkItem
(
queue
,
priority
,
result
);
I
MF
AsyncResult_Release
(
result
);
I
Rtwq
AsyncResult_Release
(
result
);
return
hr
;
}
...
...
@@ -86,7 +86,7 @@ HRESULT WINAPI MFPutWorkItemEx(DWORD queue, IMFAsyncResult *result)
{
TRACE
(
"%#x, %p
\n
"
,
queue
,
result
);
return
MFPutWorkItemEx2
(
queue
,
0
,
result
);
return
RtwqPutWorkItem
(
queue
,
0
,
(
IRtwqAsyncResult
*
)
result
);
}
/***********************************************************************
...
...
@@ -104,17 +104,17 @@ HRESULT WINAPI MFPutWorkItemEx2(DWORD queue, LONG priority, IMFAsyncResult *resu
*/
HRESULT
WINAPI
MFScheduleWorkItem
(
IMFAsyncCallback
*
callback
,
IUnknown
*
state
,
INT64
timeout
,
MFWORKITEM_KEY
*
key
)
{
I
MF
AsyncResult
*
result
;
I
Rtwq
AsyncResult
*
result
;
HRESULT
hr
;
TRACE
(
"%p, %p, %s, %p.
\n
"
,
callback
,
state
,
wine_dbgstr_longlong
(
timeout
),
key
);
if
(
FAILED
(
hr
=
MFCreateAsyncResult
(
NULL
,
callback
,
state
,
&
result
)))
if
(
FAILED
(
hr
=
RtwqCreateAsyncResult
(
NULL
,
(
IRtwqAsyncCallback
*
)
callback
,
state
,
&
result
)))
return
hr
;
hr
=
MFScheduleWorkItemEx
(
result
,
timeout
,
key
);
hr
=
RtwqScheduleWorkItem
(
result
,
timeout
,
key
);
I
MF
AsyncResult_Release
(
result
);
I
Rtwq
AsyncResult_Release
(
result
);
return
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