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
3a433af2
Commit
3a433af2
authored
Mar 01, 2019
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 01, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mfplat: Add a helper to create async result objects.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
493c2c32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
queue.c
dlls/mfplat/queue.c
+13
-3
No files found.
dlls/mfplat/queue.c
View file @
3a433af2
...
@@ -345,12 +345,10 @@ static const IMFAsyncResultVtbl async_result_vtbl =
...
@@ -345,12 +345,10 @@ static const IMFAsyncResultVtbl async_result_vtbl =
async_result_GetStateNoAddRef
,
async_result_GetStateNoAddRef
,
};
};
HRESULT
WINAPI
MFCreateAsyncR
esult
(
IUnknown
*
object
,
IMFAsyncCallback
*
callback
,
IUnknown
*
state
,
IMFAsyncResult
**
out
)
static
HRESULT
create_async_r
esult
(
IUnknown
*
object
,
IMFAsyncCallback
*
callback
,
IUnknown
*
state
,
IMFAsyncResult
**
out
)
{
{
struct
async_result
*
result
;
struct
async_result
*
result
;
TRACE
(
"%p, %p, %p, %p.
\n
"
,
object
,
callback
,
state
,
out
);
if
(
!
out
)
if
(
!
out
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
...
@@ -374,10 +372,22 @@ HRESULT WINAPI MFCreateAsyncResult(IUnknown *object, IMFAsyncCallback *callback,
...
@@ -374,10 +372,22 @@ HRESULT WINAPI MFCreateAsyncResult(IUnknown *object, IMFAsyncCallback *callback,
*
out
=
&
result
->
result
.
AsyncResult
;
*
out
=
&
result
->
result
.
AsyncResult
;
TRACE
(
"Created async result object %p.
\n
"
,
*
out
);
return
S_OK
;
return
S_OK
;
}
}
/***********************************************************************
/***********************************************************************
* MFCreateAsyncResult (mfplat.@)
*/
HRESULT
WINAPI
MFCreateAsyncResult
(
IUnknown
*
object
,
IMFAsyncCallback
*
callback
,
IUnknown
*
state
,
IMFAsyncResult
**
out
)
{
TRACE
(
"%p, %p, %p, %p.
\n
"
,
object
,
callback
,
state
,
out
);
return
create_async_result
(
object
,
callback
,
state
,
out
);
}
/***********************************************************************
* MFAllocateWorkQueue (mfplat.@)
* MFAllocateWorkQueue (mfplat.@)
*/
*/
HRESULT
WINAPI
MFAllocateWorkQueue
(
DWORD
*
queue
)
HRESULT
WINAPI
MFAllocateWorkQueue
(
DWORD
*
queue
)
...
...
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