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
8d8843e5
Commit
8d8843e5
authored
Aug 11, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Avoid a forward declaration of the IMediaStreamFilter vtbl.
parent
beada9ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
26 deletions
+24
-26
mediastreamfilter.c
dlls/amstream/mediastreamfilter.c
+24
-26
No files found.
dlls/amstream/mediastreamfilter.c
View file @
8d8843e5
...
...
@@ -50,32 +50,6 @@ static inline IMediaStreamFilterImpl *impl_from_IMediaStreamFilter(IMediaStreamF
return
CONTAINING_RECORD
(
iface
,
IMediaStreamFilterImpl
,
IMediaStreamFilter_iface
);
}
static
const
struct
IMediaStreamFilterVtbl
MediaStreamFilter_Vtbl
;
HRESULT
MediaStreamFilter_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
{
IMediaStreamFilterImpl
*
object
;
TRACE
(
"(%p,%p)
\n
"
,
pUnkOuter
,
ppObj
);
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamFilterImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IMediaStreamFilter_iface
.
lpVtbl
=
&
MediaStreamFilter_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
object
;
return
S_OK
;
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
MediaStreamFilterImpl_QueryInterface
(
IMediaStreamFilter
*
iface
,
REFIID
riid
,
...
...
@@ -314,3 +288,27 @@ static const IMediaStreamFilterVtbl MediaStreamFilter_Vtbl =
MediaStreamFilterImpl_Flush
,
MediaStreamFilterImpl_EndOfStream
};
HRESULT
MediaStreamFilter_create
(
IUnknown
*
pUnkOuter
,
void
**
ppObj
)
{
IMediaStreamFilterImpl
*
object
;
TRACE
(
"(%p,%p)
\n
"
,
pUnkOuter
,
ppObj
);
if
(
pUnkOuter
)
return
CLASS_E_NOAGGREGATION
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamFilterImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IMediaStreamFilter_iface
.
lpVtbl
=
&
MediaStreamFilter_Vtbl
;
object
->
ref
=
1
;
*
ppObj
=
object
;
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