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
806ea86b
Commit
806ea86b
authored
May 17, 2009
by
Vitaliy Margolen
Committed by
Alexandre Julliard
May 18, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dxdiagn: DirectShowFilters should go under numbered sub-containers.
parent
136dc1fc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
9 deletions
+22
-9
provider.c
dlls/dxdiagn/provider.c
+22
-9
No files found.
dlls/dxdiagn/provider.c
View file @
806ea86b
...
...
@@ -613,9 +613,11 @@ static HRESULT DXDiag_InitDXDiagDirectShowFiltersContainer(IDxDiagContainer* pSu
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
};
static
const
WCHAR
wszFilterDataName
[]
=
{
'F'
,
'i'
,
'l'
,
't'
,
'e'
,
'r'
,
'D'
,
'a'
,
't'
,
'a'
,
0
};
/*static const WCHAR wszMeritName[] = {'M','e','r','i','t',0};*/
static
const
WCHAR
szVersionFormat
[]
=
{
'v'
,
'%'
,
'd'
,
0
};
static
const
WCHAR
szIdFormat
[]
=
{
'%'
,
'd'
,
0
};
int
i
=
0
;
ICreateDevEnum
*
pCreateDevEnum
=
NULL
;
IEnumMoniker
*
pEmCat
=
NULL
;
...
...
@@ -676,28 +678,37 @@ static HRESULT DXDiag_InitDXDiagDirectShowFiltersContainer(IDxDiagContainer* pSu
DWORD
dwNOutputs
=
0
;
DWORD
dwNInputs
=
0
;
WCHAR
bufferW
[
10
];
IDxDiagContainer
*
pDShowSubCont
=
NULL
;
add_prop_str
(
pSubCont
,
szCatName
,
wszCatName
);
add_prop_str
(
pSubCont
,
ClsidCatW
,
wszCatClsid
);
snprintfW
(
bufferW
,
sizeof
(
bufferW
)
/
sizeof
(
bufferW
[
0
]),
szIdFormat
,
i
);
if
(
FAILED
(
DXDiag_CreateDXDiagContainer
(
&
IID_IDxDiagContainer
,
(
void
**
)
&
pDShowSubCont
))
||
FAILED
(
IDxDiagContainerImpl_AddChildContainer
(
pSubCont
,
bufferW
,
pDShowSubCont
)))
{
IPropertyBag_Release
(
pPropFilterBag
);
if
(
pDShowSubCont
)
IUnknown_Release
(
pDShowSubCont
);
continue
;
}
hr
=
IPropertyBag_Read
(
pPropFilterBag
,
wszFriendlyName
,
&
v
,
0
);
hr
=
IDxDiagContainerImpl_AddProp
(
pSubCont
,
szName
,
&
v
);
hr
=
IDxDiagContainerImpl_AddProp
(
p
DShow
SubCont
,
szName
,
&
v
);
TRACE
(
"
\t
Name:%s
\n
"
,
debugstr_w
(
V_BSTR
(
&
v
)));
VariantClear
(
&
v
);
hr
=
IPropertyBag_Read
(
pPropFilterBag
,
wszClsidName
,
&
v
,
0
);
TRACE
(
"
\t
Clsid:%s
\n
"
,
debugstr_w
(
V_BSTR
(
&
v
)));
hr
=
IDxDiagContainerImpl_AddProp
(
pSubCont
,
ClsidFilterW
,
&
v
);
hr
=
IDxDiagContainerImpl_AddProp
(
p
DShow
SubCont
,
ClsidFilterW
,
&
v
);
VariantClear
(
&
v
);
add_prop_str
(
pDShowSubCont
,
szCatName
,
wszCatName
);
add_prop_str
(
pDShowSubCont
,
ClsidCatW
,
wszCatClsid
);
hr
=
IPropertyBag_Read
(
pPropFilterBag
,
wszFilterDataName
,
&
v
,
NULL
);
hr
=
SafeArrayAccessData
(
V_UNION
(
&
v
,
parray
),
(
LPVOID
*
)
&
pData
);
prrf
=
(
struct
REG_RF
*
)
pData
;
pCurrent
=
pData
;
snprintfW
(
bufferW
,
sizeof
(
bufferW
)
/
sizeof
(
bufferW
[
0
]),
szVersionFormat
,
prrf
->
dwVersion
);
add_prop_str
(
pSubCont
,
szVersionW
,
bufferW
);
add_prop_ui4
(
pSubCont
,
dwMerit
,
prrf
->
dwMerit
);
add_prop_str
(
pDShowSubCont
,
szVersionW
,
bufferW
);
pCurrent
+=
sizeof
(
struct
REG_RF
);
for
(
it
=
0
;
it
<
prrf
->
dwPins
;
++
it
)
{
...
...
@@ -721,11 +732,13 @@ static HRESULT DXDiag_InitDXDiagDirectShowFiltersContainer(IDxDiagContainer* pSu
}
}
add_prop_ui4
(
pSubCont
,
dwInputs
,
dwNInputs
);
add_prop_ui4
(
pSubCont
,
dwOutputs
,
dwNOutputs
);
add_prop_ui4
(
pDShowSubCont
,
dwInputs
,
dwNInputs
);
add_prop_ui4
(
pDShowSubCont
,
dwOutputs
,
dwNOutputs
);
add_prop_ui4
(
pDShowSubCont
,
dwMerit
,
prrf
->
dwMerit
);
SafeArrayUnaccessData
(
V_UNION
(
&
v
,
parray
));
VariantClear
(
&
v
);
i
++
;
}
IPropertyBag_Release
(
pPropFilterBag
);
pPropFilterBag
=
NULL
;
}
...
...
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