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
aaee8a1b
Commit
aaee8a1b
authored
Jun 10, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Jun 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Try to render any existing renderers before creating a new one.
parent
365bbe83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
filtergraph.c
dlls/quartz/filtergraph.c
+65
-0
No files found.
dlls/quartz/filtergraph.c
View file @
aaee8a1b
...
...
@@ -928,6 +928,7 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface,
GUID
tab
[
2
];
ULONG
nb
;
IMoniker
*
pMoniker
;
INT
x
;
TRACE
(
"(%p/%p)->(%p)
\n
"
,
This
,
iface
,
ppinOut
);
...
...
@@ -943,12 +944,76 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface,
IBaseFilter_Release
(
PinInfo
.
pFilter
);
}
/* Try to find out if there is a renderer for the specified subtype already, and use that
*/
EnterCriticalSection
(
&
This
->
cs
);
for
(
x
=
0
;
x
<
This
->
nFilters
;
++
x
)
{
BOOL
renderer
=
TRUE
;
IEnumPins
*
enumpins
=
NULL
;
IPin
*
pin
=
NULL
;
hr
=
IBaseFilter_EnumPins
(
This
->
ppFiltersInGraph
[
x
],
&
enumpins
);
if
(
FAILED
(
hr
)
||
!
enumpins
)
continue
;
IEnumPins_Reset
(
enumpins
);
while
(
IEnumPins_Next
(
enumpins
,
1
,
&
pin
,
NULL
)
==
S_OK
)
{
PIN_DIRECTION
dir
=
PINDIR_OUTPUT
;
IPin_QueryDirection
(
pin
,
&
dir
);
IPin_Release
(
pin
);
pin
=
NULL
;
if
(
dir
!=
PINDIR_INPUT
)
{
renderer
=
FALSE
;
break
;
}
}
IEnumPins_Reset
(
enumpins
);
if
(
renderer
==
TRUE
)
{
while
(
IEnumPins_Next
(
enumpins
,
1
,
&
pin
,
NULL
)
==
S_OK
)
{
IPin
*
to
=
NULL
;
IPin_ConnectedTo
(
pin
,
&
to
);
if
(
to
==
NULL
)
{
hr
=
IFilterGraph2_Connect
(
iface
,
ppinOut
,
pin
);
if
(
SUCCEEDED
(
hr
))
{
IPin_Release
(
pin
);
IEnumPins_Release
(
enumpins
);
LeaveCriticalSection
(
&
This
->
cs
);
ERR
(
"Connected succesfully
\n
"
);
return
hr
;
}
}
else
IPin_Release
(
to
);
IPin_Release
(
pin
);
}
}
IEnumPins_Release
(
enumpins
);
}
LeaveCriticalSection
(
&
This
->
cs
);
hr
=
IPin_EnumMediaTypes
(
ppinOut
,
&
penummt
);
if
(
FAILED
(
hr
))
{
ERR
(
"EnumMediaTypes (%x)
\n
"
,
hr
);
return
hr
;
}
IEnumMediaTypes_Reset
(
penummt
);
while
(
1
)
{
hr
=
IEnumMediaTypes_Next
(
penummt
,
1
,
&
mt
,
&
nbmt
);
...
...
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