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
c8b94b63
Commit
c8b94b63
authored
Aug 28, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Aug 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
amstream: Use shorter names for IMediaStreamFilter methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bbd4641b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
56 deletions
+56
-56
Makefile.in
dlls/amstream/Makefile.in
+2
-2
amstream_private.h
dlls/amstream/amstream_private.h
+1
-1
filter.c
dlls/amstream/filter.c
+52
-52
main.c
dlls/amstream/main.c
+1
-1
No files found.
dlls/amstream/Makefile.in
View file @
c8b94b63
...
...
@@ -6,9 +6,9 @@ EXTRADLLFLAGS = -mno-cygwin
C_SRCS
=
\
amstream.c
\
audiodata.c
\
filter.c
\
main.c
\
mediastream.c
\
mediastreamfilter.c
mediastream.c
IDL_SRCS
=
amstream_classes.idl
...
...
dlls/amstream/amstream_private.h
View file @
c8b94b63
...
...
@@ -36,7 +36,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
filter_create
(
IUnknown
*
outer
,
void
**
out
)
DECLSPEC_HIDDEN
;
HRESULT
ddrawmediastream_create
(
IMultiMediaStream
*
Parent
,
const
MSPID
*
pPurposeId
,
IUnknown
*
stream_object
,
STREAM_TYPE
StreamType
,
IAMMediaStream
**
ppMediaStream
)
DECLSPEC_HIDDEN
;
HRESULT
audiomediastream_create
(
IMultiMediaStream
*
parent
,
const
MSPID
*
purpose_id
,
...
...
dlls/amstream/
mediastream
filter.c
→
dlls/amstream/filter.c
View file @
c8b94b63
...
...
@@ -178,7 +178,7 @@ static inline struct filter *impl_from_IMediaStreamFilter(IMediaStreamFilter *if
return
CONTAINING_RECORD
(
iface
,
struct
filter
,
IMediaStreamFilter_iface
);
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_QueryInterface
(
IMediaStreamFilter
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
static
HRESULT
WINAPI
filter
_QueryInterface
(
IMediaStreamFilter
*
iface
,
REFIID
riid
,
void
**
ret_iface
)
{
TRACE
(
"(%p)->(%s, %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ret_iface
);
...
...
@@ -200,7 +200,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_QueryInterface(IMediaStreamFilter *i
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
MediaStreamFilterImpl
_AddRef
(
IMediaStreamFilter
*
iface
)
static
ULONG
WINAPI
filter
_AddRef
(
IMediaStreamFilter
*
iface
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
ULONG
refcount
=
InterlockedIncrement
(
&
filter
->
refcount
);
...
...
@@ -210,7 +210,7 @@ static ULONG WINAPI MediaStreamFilterImpl_AddRef(IMediaStreamFilter *iface)
return
refcount
;
}
static
ULONG
WINAPI
MediaStreamFilterImpl
_Release
(
IMediaStreamFilter
*
iface
)
static
ULONG
WINAPI
filter
_Release
(
IMediaStreamFilter
*
iface
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
ULONG
refcount
=
InterlockedDecrement
(
&
filter
->
refcount
);
...
...
@@ -235,34 +235,34 @@ static ULONG WINAPI MediaStreamFilterImpl_Release(IMediaStreamFilter *iface)
return
refcount
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_GetClassID
(
IMediaStreamFilter
*
iface
,
CLSID
*
clsid
)
static
HRESULT
WINAPI
filter
_GetClassID
(
IMediaStreamFilter
*
iface
,
CLSID
*
clsid
)
{
*
clsid
=
CLSID_MediaStreamFilter
;
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_Stop
(
IMediaStreamFilter
*
iface
)
static
HRESULT
WINAPI
filter
_Stop
(
IMediaStreamFilter
*
iface
)
{
FIXME
(
"(%p)->(): Stub!
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_Pause
(
IMediaStreamFilter
*
iface
)
static
HRESULT
WINAPI
filter
_Pause
(
IMediaStreamFilter
*
iface
)
{
FIXME
(
"(%p)->(): Stub!
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_Run
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
start
)
static
HRESULT
WINAPI
filter
_Run
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
start
)
{
FIXME
(
"(%p)->(%s): Stub!
\n
"
,
iface
,
wine_dbgstr_longlong
(
start
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_GetState
(
IMediaStreamFilter
*
iface
,
DWORD
timeout
,
FILTER_STATE
*
state
)
static
HRESULT
WINAPI
filter
_GetState
(
IMediaStreamFilter
*
iface
,
DWORD
timeout
,
FILTER_STATE
*
state
)
{
FIXME
(
"iface %p, timeout %u, state %p, stub!
\n
"
,
iface
,
timeout
,
state
);
...
...
@@ -270,7 +270,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_GetState(IMediaStreamFilter *iface,
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_SetSyncSource
(
IMediaStreamFilter
*
iface
,
IReferenceClock
*
clock
)
static
HRESULT
WINAPI
filter
_SetSyncSource
(
IMediaStreamFilter
*
iface
,
IReferenceClock
*
clock
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
...
...
@@ -289,7 +289,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_SetSyncSource(IMediaStreamFilter *if
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_GetSyncSource
(
IMediaStreamFilter
*
iface
,
IReferenceClock
**
clock
)
static
HRESULT
WINAPI
filter
_GetSyncSource
(
IMediaStreamFilter
*
iface
,
IReferenceClock
**
clock
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
...
...
@@ -306,7 +306,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_GetSyncSource(IMediaStreamFilter *if
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_EnumPins
(
IMediaStreamFilter
*
iface
,
IEnumPins
**
enum_pins
)
static
HRESULT
WINAPI
filter
_EnumPins
(
IMediaStreamFilter
*
iface
,
IEnumPins
**
enum_pins
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
struct
enum_pins
*
object
;
...
...
@@ -343,7 +343,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_EnumPins(IMediaStreamFilter *iface,
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_FindPin
(
IMediaStreamFilter
*
iface
,
const
WCHAR
*
id
,
IPin
**
out
)
static
HRESULT
WINAPI
filter
_FindPin
(
IMediaStreamFilter
*
iface
,
const
WCHAR
*
id
,
IPin
**
out
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
unsigned
int
i
;
...
...
@@ -381,7 +381,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_FindPin(IMediaStreamFilter *iface, c
return
VFW_E_NOT_FOUND
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_QueryFilterInfo
(
IMediaStreamFilter
*
iface
,
FILTER_INFO
*
info
)
static
HRESULT
WINAPI
filter
_QueryFilterInfo
(
IMediaStreamFilter
*
iface
,
FILTER_INFO
*
info
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
...
...
@@ -399,7 +399,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_QueryFilterInfo(IMediaStreamFilter *
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_JoinFilterGraph
(
IMediaStreamFilter
*
iface
,
static
HRESULT
WINAPI
filter
_JoinFilterGraph
(
IMediaStreamFilter
*
iface
,
IFilterGraph
*
graph
,
const
WCHAR
*
name
)
{
struct
filter
*
filter
=
impl_from_IMediaStreamFilter
(
iface
);
...
...
@@ -419,7 +419,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_JoinFilterGraph(IMediaStreamFilter *
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl
_QueryVendorInfo
(
IMediaStreamFilter
*
iface
,
LPWSTR
*
vendor_info
)
static
HRESULT
WINAPI
filter
_QueryVendorInfo
(
IMediaStreamFilter
*
iface
,
LPWSTR
*
vendor_info
)
{
WARN
(
"iface %p, vendor_info %p, stub!
\n
"
,
iface
,
vendor_info
);
return
E_NOTIMPL
;
...
...
@@ -427,7 +427,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_QueryVendorInfo(IMediaStreamFilter *
/*** IMediaStreamFilter methods ***/
static
HRESULT
WINAPI
MediaStreamFilterImpl_AddMediaStream
(
IMediaStreamFilter
*
iface
,
IAMMediaStream
*
pAMMediaStream
)
static
HRESULT
WINAPI
filter_AddMediaStream
(
IMediaStreamFilter
*
iface
,
IAMMediaStream
*
pAMMediaStream
)
{
struct
filter
*
This
=
impl_from_IMediaStreamFilter
(
iface
);
IAMMediaStream
**
streams
;
...
...
@@ -452,7 +452,7 @@ static HRESULT WINAPI MediaStreamFilterImpl_AddMediaStream(IMediaStreamFilter* i
return
S_OK
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_GetMediaStream
(
IMediaStreamFilter
*
iface
,
REFMSPID
idPurpose
,
IMediaStream
**
ppMediaStream
)
static
HRESULT
WINAPI
filter_GetMediaStream
(
IMediaStreamFilter
*
iface
,
REFMSPID
idPurpose
,
IMediaStream
**
ppMediaStream
)
{
struct
filter
*
This
=
impl_from_IMediaStreamFilter
(
iface
);
MSPID
purpose_id
;
...
...
@@ -474,84 +474,84 @@ static HRESULT WINAPI MediaStreamFilterImpl_GetMediaStream(IMediaStreamFilter* i
return
MS_E_NOSTREAM
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_EnumMediaStreams
(
IMediaStreamFilter
*
iface
,
LONG
Index
,
IMediaStream
**
ppMediaStream
)
static
HRESULT
WINAPI
filter_EnumMediaStreams
(
IMediaStreamFilter
*
iface
,
LONG
Index
,
IMediaStream
**
ppMediaStream
)
{
FIXME
(
"(%p)->(%d,%p): Stub!
\n
"
,
iface
,
Index
,
ppMediaStream
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_SupportSeeking
(
IMediaStreamFilter
*
iface
,
BOOL
bRenderer
)
static
HRESULT
WINAPI
filter_SupportSeeking
(
IMediaStreamFilter
*
iface
,
BOOL
bRenderer
)
{
FIXME
(
"(%p)->(%d): Stub!
\n
"
,
iface
,
bRenderer
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_ReferenceTimeToStreamTime
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
*
pTime
)
static
HRESULT
WINAPI
filter_ReferenceTimeToStreamTime
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
*
pTime
)
{
FIXME
(
"(%p)->(%p): Stub!
\n
"
,
iface
,
pTime
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_GetCurrentStreamTime
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
*
pCurrentStreamTime
)
static
HRESULT
WINAPI
filter_GetCurrentStreamTime
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
*
pCurrentStreamTime
)
{
FIXME
(
"(%p)->(%p): Stub!
\n
"
,
iface
,
pCurrentStreamTime
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_WaitUntil
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
WaitStreamTime
)
static
HRESULT
WINAPI
filter_WaitUntil
(
IMediaStreamFilter
*
iface
,
REFERENCE_TIME
WaitStreamTime
)
{
FIXME
(
"(%p)->(%s): Stub!
\n
"
,
iface
,
wine_dbgstr_longlong
(
WaitStreamTime
));
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_Flush
(
IMediaStreamFilter
*
iface
,
BOOL
bCancelEOS
)
static
HRESULT
WINAPI
filter_Flush
(
IMediaStreamFilter
*
iface
,
BOOL
bCancelEOS
)
{
FIXME
(
"(%p)->(%d): Stub!
\n
"
,
iface
,
bCancelEOS
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
MediaStreamFilterImpl_EndOfStream
(
IMediaStreamFilter
*
iface
)
static
HRESULT
WINAPI
filter_EndOfStream
(
IMediaStreamFilter
*
iface
)
{
FIXME
(
"(%p)->(): Stub!
\n
"
,
iface
);
return
E_NOTIMPL
;
}
static
const
IMediaStreamFilterVtbl
MediaStreamFilter_V
tbl
=
{
MediaStreamFilterImpl
_QueryInterface
,
MediaStreamFilterImpl
_AddRef
,
MediaStreamFilterImpl
_Release
,
MediaStreamFilterImpl
_GetClassID
,
MediaStreamFilterImpl
_Stop
,
MediaStreamFilterImpl
_Pause
,
MediaStreamFilterImpl
_Run
,
MediaStreamFilterImpl
_GetState
,
MediaStreamFilterImpl
_SetSyncSource
,
MediaStreamFilterImpl
_GetSyncSource
,
MediaStreamFilterImpl
_EnumPins
,
MediaStreamFilterImpl
_FindPin
,
MediaStreamFilterImpl
_QueryFilterInfo
,
MediaStreamFilterImpl
_JoinFilterGraph
,
MediaStreamFilterImpl
_QueryVendorInfo
,
MediaStreamFilterImpl
_AddMediaStream
,
MediaStreamFilterImpl
_GetMediaStream
,
MediaStreamFilterImpl
_EnumMediaStreams
,
MediaStreamFilterImpl
_SupportSeeking
,
MediaStreamFilterImpl
_ReferenceTimeToStreamTime
,
MediaStreamFilterImpl
_GetCurrentStreamTime
,
MediaStreamFilterImpl
_WaitUntil
,
MediaStreamFilterImpl
_Flush
,
MediaStreamFilterImpl
_EndOfStream
static
const
IMediaStreamFilterVtbl
filter_v
tbl
=
{
filter
_QueryInterface
,
filter
_AddRef
,
filter
_Release
,
filter
_GetClassID
,
filter
_Stop
,
filter
_Pause
,
filter
_Run
,
filter
_GetState
,
filter
_SetSyncSource
,
filter
_GetSyncSource
,
filter
_EnumPins
,
filter
_FindPin
,
filter
_QueryFilterInfo
,
filter
_JoinFilterGraph
,
filter
_QueryVendorInfo
,
filter
_AddMediaStream
,
filter
_GetMediaStream
,
filter
_EnumMediaStreams
,
filter
_SupportSeeking
,
filter
_ReferenceTimeToStreamTime
,
filter
_GetCurrentStreamTime
,
filter
_WaitUntil
,
filter
_Flush
,
filter
_EndOfStream
};
HRESULT
MediaStreamF
ilter_create
(
IUnknown
*
outer
,
void
**
out
)
HRESULT
f
ilter_create
(
IUnknown
*
outer
,
void
**
out
)
{
struct
filter
*
object
;
...
...
@@ -563,7 +563,7 @@ HRESULT MediaStreamFilter_create(IUnknown *outer, void **out)
if
(
!
(
object
=
heap_alloc_zero
(
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
object
->
IMediaStreamFilter_iface
.
lpVtbl
=
&
MediaStreamFilter_V
tbl
;
object
->
IMediaStreamFilter_iface
.
lpVtbl
=
&
filter_v
tbl
;
object
->
refcount
=
1
;
InitializeCriticalSection
(
&
object
->
cs
);
object
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": MediaStreamFilter.cs"
);
...
...
dlls/amstream/main.c
View file @
c8b94b63
...
...
@@ -76,7 +76,7 @@ static const struct object_creation_info object_creation[] =
{
&
CLSID_AMMultiMediaStream
,
AM_create
},
{
&
CLSID_AMDirectDrawStream
,
AM_create
},
{
&
CLSID_AMAudioData
,
AMAudioData_create
},
{
&
CLSID_MediaStreamFilter
,
MediaStreamF
ilter_create
}
{
&
CLSID_MediaStreamFilter
,
f
ilter_create
}
};
static
HRESULT
WINAPI
AMCF_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
void
**
ppobj
)
...
...
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