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
c4a8ab06
Commit
c4a8ab06
authored
Dec 14, 2008
by
Christian Costa
Committed by
Alexandre Julliard
Dec 15, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Some fixes.
parent
039c15a6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
4 deletions
+20
-4
amstream.c
dlls/amstream/amstream.c
+9
-3
mediastream.c
dlls/amstream/mediastream.c
+11
-1
No files found.
dlls/amstream/amstream.c
View file @
c4a8ab06
...
...
@@ -57,6 +57,11 @@ HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj)
return
CLASS_E_NOAGGREGATION
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAMMultiMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
lpVtbl
.
lpVtbl
=
&
AM_Vtbl
;
object
->
ref
=
1
;
...
...
@@ -71,7 +76,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXM
E
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
TRAC
E
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IAMMultiMediaStream
))
...
...
@@ -343,7 +348,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_OpenFile(IAMMultiMediaStream* ifac
}
ret
=
IGraphBuilder_AddSourceFilter
(
This
->
GraphBuilder
,
pszFileName
,
pszFileName
,
&
BaseFilter
);
end:
end:
IBaseFilter_Release
(
BaseFilter
);
IFileSourceFilter_Release
(
SourceFilter
);
return
ret
;
...
...
@@ -362,7 +368,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Render(IAMMultiMediaStream* iface,
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%x)
\n
"
,
This
,
iface
,
dwFlags
);
FIXME
(
"(%p/%p)->(%x)
partial stub!
\n
"
,
This
,
iface
,
dwFlags
);
if
(
dwFlags
!=
AMMSF_NOCLOCK
)
return
E_INVALIDARG
;
...
...
dlls/amstream/mediastream.c
View file @
c4a8ab06
...
...
@@ -61,6 +61,11 @@ HRESULT MediaStream_create(IMultiMediaStream* Parent, const MSPID* pPurposeId, S
TRACE
(
"(%p,%p,%p)
\n
"
,
Parent
,
pPurposeId
,
ppMediaStream
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
lpVtbl
.
lpVtbl
=
&
MediaStream_Vtbl
;
object
->
ref
=
1
;
...
...
@@ -82,7 +87,7 @@ static HRESULT WINAPI IMediaStreamImpl_QueryInterface(IMediaStream* iface, REFII
TRACE
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_I
AMMulti
MediaStream
))
IsEqualGUID
(
riid
,
&
IID_IMediaStream
))
{
IClassFactory_AddRef
(
iface
);
*
ppvObject
=
This
;
...
...
@@ -196,6 +201,11 @@ HRESULT DirectDrawMediaStream_create(IMultiMediaStream* Parent, const MSPID* pPu
TRACE
(
"(%p,%p,%p)
\n
"
,
Parent
,
pPurposeId
,
ppMediaStream
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
lpVtbl
.
lpVtbl
=
&
DirectDrawMediaStream_Vtbl
;
object
->
ref
=
1
;
...
...
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