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
badb5d55
Commit
badb5d55
authored
Apr 23, 2012
by
Christian Costa
Committed by
Alexandre Julliard
Apr 24, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Use proper constructor name for ddraw mediastream.
parent
375ab889
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
amstream.c
dlls/amstream/amstream.c
+5
-1
amstream_private.h
dlls/amstream/amstream_private.h
+1
-1
mediastream.c
dlls/amstream/mediastream.c
+6
-1
No files found.
dlls/amstream/amstream.c
View file @
badb5d55
...
...
@@ -368,7 +368,11 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_AddMediaStream(IAMMultiMediaStream
}
}
hr
=
mediastream_create
((
IMultiMediaStream
*
)
iface
,
PurposeId
,
This
->
StreamType
,
&
pStream
);
if
(
IsEqualGUID
(
PurposeId
,
&
MSPID_PrimaryVideo
))
hr
=
ddrawmediastream_create
((
IMultiMediaStream
*
)
iface
,
PurposeId
,
This
->
StreamType
,
&
pStream
);
else
/* FIXME: should call audiomediastream_create instead */
hr
=
ddrawmediastream_create
((
IMultiMediaStream
*
)
iface
,
PurposeId
,
This
->
StreamType
,
&
pStream
);
if
(
SUCCEEDED
(
hr
))
{
pNewStreams
=
CoTaskMemRealloc
(
This
->
pStreams
,
(
This
->
nbStreams
+
1
)
*
sizeof
(
IMediaStream
*
));
...
...
dlls/amstream/amstream_private.h
View file @
badb5d55
...
...
@@ -35,7 +35,7 @@
HRESULT
AM_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
AMAudioData_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
MediaStreamFilter_create
(
IUnknown
*
pUnkOuter
,
LPVOID
*
ppObj
)
DECLSPEC_HIDDEN
;
HRESULT
mediastream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
HRESULT
ddraw
mediastream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
STREAM_TYPE
StreamType
,
IMediaStream
**
ppMediaStream
)
DECLSPEC_HIDDEN
;
#endif
/* __AMSTREAM_PRIVATE_INCLUDED__ */
dlls/amstream/mediastream.c
View file @
badb5d55
...
...
@@ -45,6 +45,7 @@ static inline IDirectDrawMediaStreamImpl *impl_from_IDirectDrawMediaStream(IDire
return
CONTAINING_RECORD
(
iface
,
IDirectDrawMediaStreamImpl
,
IDirectDrawMediaStream_iface
);
}
/*** IUnknown methods ***/
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_QueryInterface
(
IDirectDrawMediaStream
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
...
...
@@ -153,6 +154,7 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_SendEndOfStream(IDirectDrawMedi
return
S_FALSE
;
}
/*** IDirectDrawMediaStream methods ***/
static
HRESULT
WINAPI
IDirectDrawMediaStreamImpl_GetFormat
(
IDirectDrawMediaStream
*
iface
,
DDSURFACEDESC
*
pDDSDCurrent
,
IDirectDrawPalette
**
ppDirectDrawPalette
,
DDSURFACEDESC
*
pDDSDDesired
,
DWORD
*
pdwFlags
)
...
...
@@ -207,15 +209,18 @@ static HRESULT WINAPI IDirectDrawMediaStreamImpl_GetTimePerFrame(IDirectDrawMedi
static
const
struct
IDirectDrawMediaStreamVtbl
DirectDrawMediaStream_Vtbl
=
{
/*** IUnknown methods ***/
IDirectDrawMediaStreamImpl_QueryInterface
,
IDirectDrawMediaStreamImpl_AddRef
,
IDirectDrawMediaStreamImpl_Release
,
/*** IMediaStream methods ***/
IDirectDrawMediaStreamImpl_GetMultiMediaStream
,
IDirectDrawMediaStreamImpl_GetInformation
,
IDirectDrawMediaStreamImpl_SetSameFormat
,
IDirectDrawMediaStreamImpl_AllocateSample
,
IDirectDrawMediaStreamImpl_CreateSharedSample
,
IDirectDrawMediaStreamImpl_SendEndOfStream
,
/*** IDirectDrawMediaStream methods ***/
IDirectDrawMediaStreamImpl_GetFormat
,
IDirectDrawMediaStreamImpl_SetFormat
,
IDirectDrawMediaStreamImpl_GetDirectDraw
,
...
...
@@ -224,7 +229,7 @@ static const struct IDirectDrawMediaStreamVtbl DirectDrawMediaStream_Vtbl =
IDirectDrawMediaStreamImpl_GetTimePerFrame
};
HRESULT
mediastream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
HRESULT
ddraw
mediastream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
STREAM_TYPE
StreamType
,
IMediaStream
**
ppMediaStream
)
{
IDirectDrawMediaStreamImpl
*
object
;
...
...
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