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
2b55b5b6
Commit
2b55b5b6
authored
Aug 16, 2011
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Avoid the forward declaration of the DirectDrawMediaStream_Vtbl.
parent
aba87e0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
mediastream.c
dlls/amstream/mediastream.c
+26
-26
No files found.
dlls/amstream/mediastream.c
View file @
2b55b5b6
...
...
@@ -52,7 +52,6 @@ typedef struct {
}
IDirectDrawMediaStreamImpl
;
static
const
struct
IMediaStreamVtbl
MediaStream_Vtbl
;
static
const
struct
IDirectDrawMediaStreamVtbl
DirectDrawMediaStream_Vtbl
;
HRESULT
MediaStream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
STREAM_TYPE
StreamType
,
IMediaStream
**
ppMediaStream
)
{
...
...
@@ -194,31 +193,6 @@ static const struct IMediaStreamVtbl MediaStream_Vtbl =
IMediaStreamImpl_SendEndOfStream
};
HRESULT
DirectDrawMediaStream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
STREAM_TYPE
StreamType
,
IMediaStream
**
ppMediaStream
)
{
IDirectDrawMediaStreamImpl
*
object
;
TRACE
(
"(%p,%s,%p)
\n
"
,
Parent
,
debugstr_guid
(
pPurposeId
),
ppMediaStream
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirectDrawMediaStream_iface
.
lpVtbl
=
&
DirectDrawMediaStream_Vtbl
;
object
->
ref
=
1
;
object
->
Parent
=
Parent
;
object
->
PurposeId
=
*
pPurposeId
;
object
->
StreamType
=
StreamType
;
*
ppMediaStream
=
(
IMediaStream
*
)
&
object
->
IDirectDrawMediaStream_iface
;
return
S_OK
;
}
static
inline
IDirectDrawMediaStreamImpl
*
impl_from_IDirectDrawMediaStream
(
IDirectDrawMediaStream
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IDirectDrawMediaStreamImpl
,
IDirectDrawMediaStream_iface
);
...
...
@@ -322,3 +296,29 @@ static const struct IDirectDrawMediaStreamVtbl DirectDrawMediaStream_Vtbl =
IDirectDrawMediaStreamImpl_GetTimePerFrame
};
#undef XCAST
HRESULT
DirectDrawMediaStream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
STREAM_TYPE
StreamType
,
IMediaStream
**
ppMediaStream
)
{
IDirectDrawMediaStreamImpl
*
object
;
TRACE
(
"(%p,%s,%p)
\n
"
,
Parent
,
debugstr_guid
(
pPurposeId
),
ppMediaStream
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
IDirectDrawMediaStream_iface
.
lpVtbl
=
&
DirectDrawMediaStream_Vtbl
;
object
->
ref
=
1
;
object
->
Parent
=
Parent
;
object
->
PurposeId
=
*
pPurposeId
;
object
->
StreamType
=
StreamType
;
*
ppMediaStream
=
(
IMediaStream
*
)
&
object
->
IDirectDrawMediaStream_iface
;
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