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
1f04af88
Commit
1f04af88
authored
Jan 30, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jan 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Trace the filter name in IBaseFilter methods.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4a9893d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
19 deletions
+23
-19
filter.c
dlls/strmbase/filter.c
+23
-19
No files found.
dlls/strmbase/filter.c
View file @
1f04af88
...
@@ -208,7 +208,7 @@ static HRESULT WINAPI filter_inner_QueryInterface(IUnknown *iface, REFIID iid, v
...
@@ -208,7 +208,7 @@ static HRESULT WINAPI filter_inner_QueryInterface(IUnknown *iface, REFIID iid, v
struct
strmbase_filter
*
filter
=
impl_from_IUnknown
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IUnknown
(
iface
);
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"
iface %p, iid %s, out %p.
\n
"
,
iface
,
debugstr_guid
(
iid
),
out
);
TRACE
(
"
filter %p %s, iid %s, out %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
debugstr_guid
(
iid
),
out
);
*
out
=
NULL
;
*
out
=
NULL
;
...
@@ -289,12 +289,13 @@ static ULONG WINAPI filter_Release(IBaseFilter *iface)
...
@@ -289,12 +289,13 @@ static ULONG WINAPI filter_Release(IBaseFilter *iface)
return
IUnknown_Release
(
filter
->
outer_unk
);
return
IUnknown_Release
(
filter
->
outer_unk
);
}
}
static
HRESULT
WINAPI
filter_GetClassID
(
IBaseFilter
*
iface
,
CLSID
*
pC
lsid
)
static
HRESULT
WINAPI
filter_GetClassID
(
IBaseFilter
*
iface
,
CLSID
*
c
lsid
)
{
{
struct
strmbase_filter
*
This
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
pClsid
);
*
pClsid
=
This
->
clsid
;
TRACE
(
"filter %p %s, clsid %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
),
clsid
);
*
clsid
=
filter
->
clsid
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -304,7 +305,7 @@ static HRESULT WINAPI filter_Stop(IBaseFilter *iface)
...
@@ -304,7 +305,7 @@ static HRESULT WINAPI filter_Stop(IBaseFilter *iface)
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
TRACE
(
"filter %p
.
\n
"
,
filter
);
TRACE
(
"filter %p
%s.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
);
EnterCriticalSection
(
&
filter
->
csFilter
);
EnterCriticalSection
(
&
filter
->
csFilter
);
...
@@ -325,7 +326,7 @@ static HRESULT WINAPI filter_Pause(IBaseFilter *iface)
...
@@ -325,7 +326,7 @@ static HRESULT WINAPI filter_Pause(IBaseFilter *iface)
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
TRACE
(
"filter %p
.
\n
"
,
filter
);
TRACE
(
"filter %p
%s.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
);
EnterCriticalSection
(
&
filter
->
csFilter
);
EnterCriticalSection
(
&
filter
->
csFilter
);
...
@@ -346,7 +347,7 @@ static HRESULT WINAPI filter_Run(IBaseFilter *iface, REFERENCE_TIME start)
...
@@ -346,7 +347,7 @@ static HRESULT WINAPI filter_Run(IBaseFilter *iface, REFERENCE_TIME start)
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
TRACE
(
"filter %p
, start %s.
\n
"
,
filter
,
debugstr_time
(
start
));
TRACE
(
"filter %p
%s, start %s.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
debugstr_time
(
start
));
EnterCriticalSection
(
&
filter
->
csFilter
);
EnterCriticalSection
(
&
filter
->
csFilter
);
...
@@ -367,7 +368,7 @@ static HRESULT WINAPI filter_GetState(IBaseFilter *iface, DWORD timeout, FILTER_
...
@@ -367,7 +368,7 @@ static HRESULT WINAPI filter_GetState(IBaseFilter *iface, DWORD timeout, FILTER_
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
HRESULT
hr
=
S_OK
;
HRESULT
hr
=
S_OK
;
TRACE
(
"filter %p
, timeout %u, state %p.
\n
"
,
filter
,
timeout
,
state
);
TRACE
(
"filter %p
%s, timeout %u, state %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
timeout
,
state
);
EnterCriticalSection
(
&
filter
->
csFilter
);
EnterCriticalSection
(
&
filter
->
csFilter
);
...
@@ -384,7 +385,7 @@ static HRESULT WINAPI filter_SetSyncSource(IBaseFilter *iface, IReferenceClock *
...
@@ -384,7 +385,7 @@ static HRESULT WINAPI filter_SetSyncSource(IBaseFilter *iface, IReferenceClock *
{
{
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"filter %p
, clock %p.
\n
"
,
filter
,
clock
);
TRACE
(
"filter %p
%s, clock %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
clock
);
EnterCriticalSection
(
&
filter
->
csFilter
);
EnterCriticalSection
(
&
filter
->
csFilter
);
...
@@ -403,7 +404,7 @@ static HRESULT WINAPI filter_GetSyncSource(IBaseFilter *iface, IReferenceClock *
...
@@ -403,7 +404,7 @@ static HRESULT WINAPI filter_GetSyncSource(IBaseFilter *iface, IReferenceClock *
{
{
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"filter %p
, clock %p.
\n
"
,
filter
,
clock
);
TRACE
(
"filter %p
%s, clock %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
clock
);
EnterCriticalSection
(
&
filter
->
csFilter
);
EnterCriticalSection
(
&
filter
->
csFilter
);
...
@@ -420,20 +421,20 @@ static HRESULT WINAPI filter_EnumPins(IBaseFilter *iface, IEnumPins **enum_pins)
...
@@ -420,20 +421,20 @@ static HRESULT WINAPI filter_EnumPins(IBaseFilter *iface, IEnumPins **enum_pins)
{
{
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"
iface %p, enum_pins %p.
\n
"
,
iface
,
enum_pins
);
TRACE
(
"
filter %p %s, enum_pins %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
enum_pins
);
return
enum_pins_create
(
filter
,
enum_pins
);
return
enum_pins_create
(
filter
,
enum_pins
);
}
}
static
HRESULT
WINAPI
filter_FindPin
(
IBaseFilter
*
iface
,
const
WCHAR
*
id
,
IPin
**
ret
)
static
HRESULT
WINAPI
filter_FindPin
(
IBaseFilter
*
iface
,
const
WCHAR
*
id
,
IPin
**
ret
)
{
{
struct
strmbase_filter
*
This
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_pin
*
pin
;
struct
strmbase_pin
*
pin
;
unsigned
int
i
;
unsigned
int
i
;
TRACE
(
"
(%p)->(%s, %p)
\n
"
,
This
,
debugstr_w
(
id
),
ret
);
TRACE
(
"
filter %p %s, id %s, ret %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
debugstr_w
(
id
),
ret
);
for
(
i
=
0
;
(
pin
=
This
->
ops
->
filter_get_pin
(
This
,
i
));
++
i
)
for
(
i
=
0
;
(
pin
=
filter
->
ops
->
filter_get_pin
(
filter
,
i
));
++
i
)
{
{
if
(
!
lstrcmpW
(
id
,
pin
->
name
))
if
(
!
lstrcmpW
(
id
,
pin
->
name
))
{
{
...
@@ -449,7 +450,7 @@ static HRESULT WINAPI filter_QueryFilterInfo(IBaseFilter *iface, FILTER_INFO *in
...
@@ -449,7 +450,7 @@ static HRESULT WINAPI filter_QueryFilterInfo(IBaseFilter *iface, FILTER_INFO *in
{
{
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"filter %p
, info %p.
\n
"
,
filter
,
info
);
TRACE
(
"filter %p
%s, info %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
info
);
lstrcpyW
(
info
->
achName
,
filter
->
name
);
lstrcpyW
(
info
->
achName
,
filter
->
name
);
info
->
pGraph
=
filter
->
graph
;
info
->
pGraph
=
filter
->
graph
;
...
@@ -464,7 +465,7 @@ static HRESULT WINAPI filter_JoinFilterGraph(IBaseFilter *iface, IFilterGraph *g
...
@@ -464,7 +465,7 @@ static HRESULT WINAPI filter_JoinFilterGraph(IBaseFilter *iface, IFilterGraph *g
{
{
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"filter %p
, graph %p, name %s.
\n
"
,
filter
,
graph
,
debugstr_w
(
name
));
TRACE
(
"filter %p
%s, graph %p, name %s.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
)
,
graph
,
debugstr_w
(
name
));
EnterCriticalSection
(
&
filter
->
csFilter
);
EnterCriticalSection
(
&
filter
->
csFilter
);
...
@@ -480,9 +481,12 @@ static HRESULT WINAPI filter_JoinFilterGraph(IBaseFilter *iface, IFilterGraph *g
...
@@ -480,9 +481,12 @@ static HRESULT WINAPI filter_JoinFilterGraph(IBaseFilter *iface, IFilterGraph *g
return
S_OK
;
return
S_OK
;
}
}
static
HRESULT
WINAPI
filter_QueryVendorInfo
(
IBaseFilter
*
iface
,
WCHAR
**
pVendorI
nfo
)
static
HRESULT
WINAPI
filter_QueryVendorInfo
(
IBaseFilter
*
iface
,
WCHAR
**
i
nfo
)
{
{
TRACE
(
"(%p)->(%p)
\n
"
,
iface
,
pVendorInfo
);
struct
strmbase_filter
*
filter
=
impl_from_IBaseFilter
(
iface
);
TRACE
(
"filter %p %s, info %p.
\n
"
,
filter
,
debugstr_w
(
filter
->
name
),
info
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
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