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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
16 deletions
+32
-16
amstream.c
dlls/amstream/amstream.c
+18
-12
mediastream.c
dlls/amstream/mediastream.c
+14
-4
No files found.
dlls/amstream/amstream.c
View file @
c4a8ab06
...
@@ -57,6 +57,11 @@ HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj)
...
@@ -57,6 +57,11 @@ HRESULT AM_create(IUnknown *pUnkOuter, LPVOID *ppObj)
return
CLASS_E_NOAGGREGATION
;
return
CLASS_E_NOAGGREGATION
;
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAMMultiMediaStreamImpl
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IAMMultiMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
lpVtbl
.
lpVtbl
=
&
AM_Vtbl
;
object
->
lpVtbl
.
lpVtbl
=
&
AM_Vtbl
;
object
->
ref
=
1
;
object
->
ref
=
1
;
...
@@ -71,7 +76,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
...
@@ -71,7 +76,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_QueryInterface(IAMMultiMediaStream
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
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
)
||
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_IAMMultiMediaStream
))
IsEqualGUID
(
riid
,
&
IID_IAMMultiMediaStream
))
...
@@ -113,7 +118,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetInformation(IAMMultiMediaStream
...
@@ -113,7 +118,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetInformation(IAMMultiMediaStream
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%p,%p) stub!
\n
"
,
This
,
iface
,
pdwFlags
,
pStreamType
);
FIXME
(
"(%p/%p)->(%p,%p) stub!
\n
"
,
This
,
iface
,
pdwFlags
,
pStreamType
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -144,7 +149,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_EnumMediaStreams(IAMMultiMediaStre
...
@@ -144,7 +149,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_EnumMediaStreams(IAMMultiMediaStre
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%ld,%p) stub!
\n
"
,
This
,
iface
,
Index
,
ppMediaStream
);
FIXME
(
"(%p/%p)->(%ld,%p) stub!
\n
"
,
This
,
iface
,
Index
,
ppMediaStream
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -153,7 +158,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetState(IAMMultiMediaStream* ifac
...
@@ -153,7 +158,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetState(IAMMultiMediaStream* ifac
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
pCurrentState
);
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
pCurrentState
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -162,7 +167,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_SetState(IAMMultiMediaStream* ifac
...
@@ -162,7 +167,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_SetState(IAMMultiMediaStream* ifac
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->() stub!
\n
"
,
This
,
iface
);
FIXME
(
"(%p/%p)->() stub!
\n
"
,
This
,
iface
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -171,7 +176,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetTime(IAMMultiMediaStream* iface
...
@@ -171,7 +176,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetTime(IAMMultiMediaStream* iface
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
pCurrentTime
);
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
pCurrentTime
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -180,7 +185,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetDuration(IAMMultiMediaStream* i
...
@@ -180,7 +185,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetDuration(IAMMultiMediaStream* i
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
pDuration
);
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
pDuration
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -189,7 +194,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Seek(IAMMultiMediaStream* iface, S
...
@@ -189,7 +194,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Seek(IAMMultiMediaStream* iface, S
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->() stub!
\n
"
,
This
,
iface
);
FIXME
(
"(%p/%p)->() stub!
\n
"
,
This
,
iface
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -198,7 +203,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetEndOfStream(IAMMultiMediaStream
...
@@ -198,7 +203,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetEndOfStream(IAMMultiMediaStream
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
phEOS
);
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
phEOS
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -233,7 +238,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetFilterGraph(IAMMultiMediaStream
...
@@ -233,7 +238,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_GetFilterGraph(IAMMultiMediaStream
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
ppGraphBuilder
);
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
ppGraphBuilder
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -343,7 +348,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_OpenFile(IAMMultiMediaStream* ifac
...
@@ -343,7 +348,8 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_OpenFile(IAMMultiMediaStream* ifac
}
}
ret
=
IGraphBuilder_AddSourceFilter
(
This
->
GraphBuilder
,
pszFileName
,
pszFileName
,
&
BaseFilter
);
ret
=
IGraphBuilder_AddSourceFilter
(
This
->
GraphBuilder
,
pszFileName
,
pszFileName
,
&
BaseFilter
);
end:
end:
IBaseFilter_Release
(
BaseFilter
);
IBaseFilter_Release
(
BaseFilter
);
IFileSourceFilter_Release
(
SourceFilter
);
IFileSourceFilter_Release
(
SourceFilter
);
return
ret
;
return
ret
;
...
@@ -362,7 +368,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Render(IAMMultiMediaStream* iface,
...
@@ -362,7 +368,7 @@ static HRESULT WINAPI IAMMultiMediaStreamImpl_Render(IAMMultiMediaStream* iface,
{
{
IAMMultiMediaStreamImpl
*
This
=
(
IAMMultiMediaStreamImpl
*
)
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
)
if
(
dwFlags
!=
AMMSF_NOCLOCK
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
...
...
dlls/amstream/mediastream.c
View file @
c4a8ab06
...
@@ -61,7 +61,12 @@ HRESULT MediaStream_create(IMultiMediaStream* Parent, const MSPID* pPurposeId, S
...
@@ -61,7 +61,12 @@ HRESULT MediaStream_create(IMultiMediaStream* Parent, const MSPID* pPurposeId, S
TRACE
(
"(%p,%p,%p)
\n
"
,
Parent
,
pPurposeId
,
ppMediaStream
);
TRACE
(
"(%p,%p,%p)
\n
"
,
Parent
,
pPurposeId
,
ppMediaStream
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
lpVtbl
.
lpVtbl
=
&
MediaStream_Vtbl
;
object
->
lpVtbl
.
lpVtbl
=
&
MediaStream_Vtbl
;
object
->
ref
=
1
;
object
->
ref
=
1
;
...
@@ -70,7 +75,7 @@ HRESULT MediaStream_create(IMultiMediaStream* Parent, const MSPID* pPurposeId, S
...
@@ -70,7 +75,7 @@ HRESULT MediaStream_create(IMultiMediaStream* Parent, const MSPID* pPurposeId, S
object
->
StreamType
=
StreamType
;
object
->
StreamType
=
StreamType
;
*
ppMediaStream
=
(
IMediaStream
*
)
object
;
*
ppMediaStream
=
(
IMediaStream
*
)
object
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -82,7 +87,7 @@ static HRESULT WINAPI IMediaStreamImpl_QueryInterface(IMediaStream* iface, REFII
...
@@ -82,7 +87,7 @@ static HRESULT WINAPI IMediaStreamImpl_QueryInterface(IMediaStream* iface, REFII
TRACE
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
TRACE
(
"(%p/%p)->(%s,%p)
\n
"
,
iface
,
This
,
debugstr_guid
(
riid
),
ppvObject
);
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
if
(
IsEqualGUID
(
riid
,
&
IID_IUnknown
)
||
IsEqualGUID
(
riid
,
&
IID_I
AMMulti
MediaStream
))
IsEqualGUID
(
riid
,
&
IID_IMediaStream
))
{
{
IClassFactory_AddRef
(
iface
);
IClassFactory_AddRef
(
iface
);
*
ppvObject
=
This
;
*
ppvObject
=
This
;
...
@@ -120,7 +125,7 @@ static HRESULT WINAPI IMediaStreamImpl_GetMultiMediaStream(IMediaStream* iface,
...
@@ -120,7 +125,7 @@ static HRESULT WINAPI IMediaStreamImpl_GetMultiMediaStream(IMediaStream* iface,
{
{
IMediaStreamImpl
*
This
=
(
IMediaStreamImpl
*
)
iface
;
IMediaStreamImpl
*
This
=
(
IMediaStreamImpl
*
)
iface
;
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
ppMultiMediaStream
);
FIXME
(
"(%p/%p)->(%p) stub!
\n
"
,
This
,
iface
,
ppMultiMediaStream
);
return
S_FALSE
;
return
S_FALSE
;
}
}
...
@@ -196,6 +201,11 @@ HRESULT DirectDrawMediaStream_create(IMultiMediaStream* Parent, const MSPID* pPu
...
@@ -196,6 +201,11 @@ HRESULT DirectDrawMediaStream_create(IMultiMediaStream* Parent, const MSPID* pPu
TRACE
(
"(%p,%p,%p)
\n
"
,
Parent
,
pPurposeId
,
ppMediaStream
);
TRACE
(
"(%p,%p,%p)
\n
"
,
Parent
,
pPurposeId
,
ppMediaStream
);
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
object
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
sizeof
(
IMediaStreamImpl
));
if
(
!
object
)
{
ERR
(
"Out of memory
\n
"
);
return
E_OUTOFMEMORY
;
}
object
->
lpVtbl
.
lpVtbl
=
&
DirectDrawMediaStream_Vtbl
;
object
->
lpVtbl
.
lpVtbl
=
&
DirectDrawMediaStream_Vtbl
;
object
->
ref
=
1
;
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