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
32714065
Commit
32714065
authored
Feb 24, 2013
by
Alessandro Pignotti
Committed by
Alexandre Julliard
Mar 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Get the CLSID directly from the filter.
parent
1ebed65e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
filtergraph.c
dlls/quartz/filtergraph.c
+15
-7
No files found.
dlls/quartz/filtergraph.c
View file @
32714065
...
...
@@ -1025,14 +1025,28 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
IAMGraphBuilderCallback
*
callback
=
NULL
;
hr
=
GetFilterInfo
(
pMoniker
,
&
clsid
,
&
var
);
IMoniker_Release
(
pMoniker
);
if
(
FAILED
(
hr
))
{
WARN
(
"Unable to retrieve filter info (%x)
\n
"
,
hr
);
goto
error
;
}
hr
=
IMoniker_BindToObject
(
pMoniker
,
NULL
,
NULL
,
&
IID_IBaseFilter
,
(
LPVOID
*
)
&
pfilter
);
IMoniker_Release
(
pMoniker
);
if
(
FAILED
(
hr
))
{
WARN
(
"Unable to create filter (%x), trying next one
\n
"
,
hr
);
goto
error
;
}
hr
=
IBaseFilter_GetClassID
(
pfilter
,
&
clsid
);
if
(
FAILED
(
hr
))
{
IBaseFilter_Release
(
pfilter
);
goto
error
;
}
if
(
IsEqualGUID
(
&
clsid
,
&
FilterCLSID
))
{
/* Skip filter (same as the one the output pin belongs to) */
IBaseFilter_Release
(
pfilter
);
goto
error
;
}
...
...
@@ -1052,12 +1066,6 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
}
}
hr
=
CoCreateInstance
(
&
clsid
,
NULL
,
CLSCTX_INPROC_SERVER
,
&
IID_IBaseFilter
,
(
LPVOID
*
)
&
pfilter
);
if
(
FAILED
(
hr
))
{
WARN
(
"Unable to create filter (%x), trying next one
\n
"
,
hr
);
goto
error
;
}
if
(
callback
)
{
HRESULT
rc
;
...
...
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