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
d1ff1c04
Commit
d1ff1c04
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: It's not guaranteed that filters have a GUID in the property bag.
parent
32714065
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
14 deletions
+4
-14
filtergraph.c
dlls/quartz/filtergraph.c
+4
-14
No files found.
dlls/quartz/filtergraph.c
View file @
d1ff1c04
...
...
@@ -808,9 +808,8 @@ static HRESULT WINAPI FilterGraph2_SetDefaultSyncSource(IFilterGraph2 *iface)
return
hr
;
}
static
HRESULT
GetFilterInfo
(
IMoniker
*
pMoniker
,
GUID
*
pclsid
,
VARIANT
*
pvar
)
static
HRESULT
GetFilterInfo
(
IMoniker
*
pMoniker
,
VARIANT
*
pvar
)
{
static
const
WCHAR
wszClsidName
[]
=
{
'C'
,
'L'
,
'S'
,
'I'
,
'D'
,
0
};
static
const
WCHAR
wszFriendlyName
[]
=
{
'F'
,
'r'
,
'i'
,
'e'
,
'n'
,
'd'
,
'l'
,
'y'
,
'N'
,
'a'
,
'm'
,
'e'
,
0
};
IPropertyBag
*
pPropBagCat
=
NULL
;
HRESULT
hr
;
...
...
@@ -820,18 +819,10 @@ static HRESULT GetFilterInfo(IMoniker* pMoniker, GUID* pclsid, VARIANT* pvar)
hr
=
IMoniker_BindToStorage
(
pMoniker
,
NULL
,
NULL
,
&
IID_IPropertyBag
,
(
LPVOID
*
)
&
pPropBagCat
);
if
(
SUCCEEDED
(
hr
))
hr
=
IPropertyBag_Read
(
pPropBagCat
,
wszClsidName
,
pvar
,
NULL
);
if
(
SUCCEEDED
(
hr
))
hr
=
CLSIDFromString
(
V_UNION
(
pvar
,
bstrVal
),
pclsid
);
VariantClear
(
pvar
);
if
(
SUCCEEDED
(
hr
))
hr
=
IPropertyBag_Read
(
pPropBagCat
,
wszFriendlyName
,
pvar
,
NULL
);
if
(
SUCCEEDED
(
hr
))
TRACE
(
"Moniker = %s
- %s
\n
"
,
debugstr_guid
(
pclsid
)
,
debugstr_w
(
V_UNION
(
pvar
,
bstrVal
)));
TRACE
(
"Moniker = %s
\n
"
,
debugstr_w
(
V_UNION
(
pvar
,
bstrVal
)));
if
(
pPropBagCat
)
IPropertyBag_Release
(
pPropBagCat
);
...
...
@@ -1024,7 +1015,7 @@ static HRESULT WINAPI FilterGraph2_Connect(IFilterGraph2 *iface, IPin *ppinOut,
IBaseFilter
*
pfilter
=
NULL
;
IAMGraphBuilderCallback
*
callback
=
NULL
;
hr
=
GetFilterInfo
(
pMoniker
,
&
clsid
,
&
var
);
hr
=
GetFilterInfo
(
pMoniker
,
&
var
);
if
(
FAILED
(
hr
))
{
WARN
(
"Unable to retrieve filter info (%x)
\n
"
,
hr
);
goto
error
;
...
...
@@ -1395,13 +1386,12 @@ static HRESULT WINAPI FilterGraph2_Render(IFilterGraph2 *iface, IPin *ppinOut)
while
(
IEnumMoniker_Next
(
pEnumMoniker
,
1
,
&
pMoniker
,
&
nb
)
==
S_OK
)
{
VARIANT
var
;
GUID
clsid
;
IPin
*
ppinfilter
;
IBaseFilter
*
pfilter
=
NULL
;
IEnumPins
*
penumpins
=
NULL
;
ULONG
pin
;
hr
=
GetFilterInfo
(
pMoniker
,
&
clsid
,
&
var
);
hr
=
GetFilterInfo
(
pMoniker
,
&
var
);
if
(
FAILED
(
hr
))
{
WARN
(
"Unable to retrieve filter info (%x)
\n
"
,
hr
);
goto
error
;
...
...
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