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
14229c11
Commit
14229c11
authored
Nov 04, 2010
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Nov 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Simplify all_renderers_seek.
Since IAMFilterMiscFlags is supported by all source/renderer filters, use that instead.
parent
7fda01e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
38 deletions
+19
-38
filtergraph.c
dlls/quartz/filtergraph.c
+19
-38
No files found.
dlls/quartz/filtergraph.c
View file @
14229c11
...
@@ -2136,53 +2136,34 @@ typedef HRESULT (WINAPI *fnFoundSeek)(IFilterGraphImpl *This, IMediaSeeking*, DW
...
@@ -2136,53 +2136,34 @@ typedef HRESULT (WINAPI *fnFoundSeek)(IFilterGraphImpl *This, IMediaSeeking*, DW
static
HRESULT
all_renderers_seek
(
IFilterGraphImpl
*
This
,
fnFoundSeek
FoundSeek
,
DWORD_PTR
arg
)
{
static
HRESULT
all_renderers_seek
(
IFilterGraphImpl
*
This
,
fnFoundSeek
FoundSeek
,
DWORD_PTR
arg
)
{
BOOL
allnotimpl
=
TRUE
;
BOOL
allnotimpl
=
TRUE
;
int
i
;
int
i
;
IBaseFilter
*
pfilter
;
IEnumPins
*
pEnum
;
HRESULT
hr
,
hr_return
=
S_OK
;
HRESULT
hr
,
hr_return
=
S_OK
;
IPin
*
pPin
;
DWORD
dummy
;
PIN_DIRECTION
dir
;
TRACE
(
"(%p)->(%p %08lx)
\n
"
,
This
,
FoundSeek
,
arg
);
TRACE
(
"(%p)->(%p %08lx)
\n
"
,
This
,
FoundSeek
,
arg
);
/* Send a message to all renderers, they are responsible for broadcasting it further */
/* Send a message to all renderers, they are responsible for broadcasting it further */
for
(
i
=
0
;
i
<
This
->
nFilters
;
i
++
)
for
(
i
=
0
;
i
<
This
->
nFilters
;
i
++
)
{
{
BOOL
renderer
=
TRUE
;
IMediaSeeking
*
seek
=
NULL
;
pfilter
=
This
->
ppFiltersInGraph
[
i
];
IBaseFilter
*
pfilter
=
This
->
ppFiltersInGraph
[
i
];
hr
=
IBaseFilter_EnumPins
(
pfilter
,
&
pEnum
);
IAMFilterMiscFlags
*
flags
=
NULL
;
if
(
hr
!=
S_OK
)
ULONG
filterflags
;
{
IUnknown_QueryInterface
(
pfilter
,
&
IID_IAMFilterMiscFlags
,
(
void
**
)
&
flags
);
WARN
(
"Enum pins failed %x
\n
"
,
hr
);
if
(
!
flags
)
continue
;
filterflags
=
IAMFilterMiscFlags_GetMiscFlags
(
flags
);
IUnknown_Release
(
flags
);
if
(
filterflags
!=
AM_FILTER_MISC_FLAGS_IS_RENDERER
)
continue
;
continue
;
}
/* Check if it is a source filter */
while
(
IEnumPins_Next
(
pEnum
,
1
,
&
pPin
,
&
dummy
)
==
S_OK
)
{
IPin_QueryDirection
(
pPin
,
&
dir
);
IPin_Release
(
pPin
);
if
(
dir
!=
PINDIR_INPUT
)
{
renderer
=
FALSE
;
break
;
}
}
IEnumPins_Release
(
pEnum
);
if
(
renderer
)
{
IMediaSeeking
*
seek
=
NULL
;
IBaseFilter_QueryInterface
(
pfilter
,
&
IID_IMediaSeeking
,
(
void
**
)
&
seek
);
if
(
!
seek
)
continue
;
hr
=
FoundSeek
(
This
,
seek
,
arg
);
IMediaSeeking_Release
(
seek
);
IBaseFilter_QueryInterface
(
pfilter
,
&
IID_IMediaSeeking
,
(
void
**
)
&
seek
);
if
(
hr_return
!=
E_NOTIMPL
)
if
(
!
seek
)
allnotimpl
=
FALSE
;
continue
;
if
(
hr_return
==
S_OK
||
(
FAILED
(
hr
)
&&
hr
!=
E_NOTIMPL
&&
SUCCEEDED
(
hr_return
)))
hr
=
FoundSeek
(
This
,
seek
,
arg
);
hr_return
=
hr
;
IMediaSeeking_Release
(
seek
);
}
if
(
hr_return
!=
E_NOTIMPL
)
allnotimpl
=
FALSE
;
if
(
hr_return
==
S_OK
||
(
FAILED
(
hr
)
&&
hr
!=
E_NOTIMPL
&&
SUCCEEDED
(
hr_return
)))
hr_return
=
hr
;
}
}
if
(
allnotimpl
)
if
(
allnotimpl
)
...
...
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