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
38726831
Commit
38726831
authored
May 14, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
May 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Return void from BaseFilter_Init().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8ba451f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
17 deletions
+9
-17
audiorecord.c
dlls/qcap/audiorecord.c
+5
-13
filter.c
dlls/strmbase/filter.c
+2
-3
strmbase.h
include/wine/strmbase.h
+2
-1
No files found.
dlls/qcap/audiorecord.c
View file @
38726831
...
...
@@ -254,15 +254,14 @@ static const IPersistPropertyBagVtbl PersistPropertyBagVtbl =
IUnknown
*
WINAPI
QCAP_createAudioCaptureFilter
(
IUnknown
*
outer
,
HRESULT
*
phr
)
{
HRESULT
hr
;
AudioRecord
*
This
=
NULL
;
FIXME
(
"(%p, %p): the entire CLSID_AudioRecord implementation is just stubs
\n
"
,
outer
,
phr
);
This
=
CoTaskMemAlloc
(
sizeof
(
*
This
));
if
(
This
==
NULL
)
{
hr
=
E_OUTOFMEMORY
;
goto
end
;
*
p
hr
=
E_OUTOFMEMORY
;
return
NULL
;
}
memset
(
This
,
0
,
sizeof
(
*
This
));
This
->
IUnknown_iface
.
lpVtbl
=
&
UnknownVtbl
;
...
...
@@ -272,16 +271,9 @@ IUnknown* WINAPI QCAP_createAudioCaptureFilter(IUnknown *outer, HRESULT *phr)
else
This
->
outerUnknown
=
&
This
->
IUnknown_iface
;
hr
=
BaseFilter_Init
(
&
This
->
filter
,
&
AudioRecordVtbl
,
&
CLSID_AudioRecord
,
BaseFilter_Init
(
&
This
->
filter
,
&
AudioRecordVtbl
,
&
CLSID_AudioRecord
,
(
DWORD_PTR
)(
__FILE__
": AudioRecord.csFilter"
),
&
AudioRecordFuncs
);
end:
*
phr
=
hr
;
if
(
SUCCEEDED
(
hr
))
{
return
(
IUnknown
*
)
&
This
->
filter
.
IBaseFilter_iface
;
}
else
{
if
(
This
)
IBaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
return
NULL
;
}
*
phr
=
S_OK
;
return
(
IUnknown
*
)
&
This
->
filter
.
IBaseFilter_iface
;
}
dlls/strmbase/filter.c
View file @
38726831
...
...
@@ -210,7 +210,8 @@ VOID WINAPI BaseFilterImpl_IncrementPinVersion(BaseFilter *filter)
InterlockedIncrement
(
&
filter
->
pin_version
);
}
HRESULT
WINAPI
BaseFilter_Init
(
BaseFilter
*
This
,
const
IBaseFilterVtbl
*
Vtbl
,
const
CLSID
*
pClsid
,
DWORD_PTR
DebugInfo
,
const
BaseFilterFuncTable
*
pBaseFuncsTable
)
void
BaseFilter_Init
(
BaseFilter
*
This
,
const
IBaseFilterVtbl
*
Vtbl
,
const
CLSID
*
pClsid
,
DWORD_PTR
DebugInfo
,
const
BaseFilterFuncTable
*
pBaseFuncsTable
)
{
This
->
IBaseFilter_iface
.
lpVtbl
=
Vtbl
;
This
->
refCount
=
1
;
...
...
@@ -224,8 +225,6 @@ HRESULT WINAPI BaseFilter_Init(BaseFilter * This, const IBaseFilterVtbl *Vtbl, c
This
->
pin_version
=
1
;
This
->
pFuncsTable
=
pBaseFuncsTable
;
return
S_OK
;
}
HRESULT
WINAPI
BaseFilter_Destroy
(
BaseFilter
*
This
)
...
...
include/wine/strmbase.h
View file @
38726831
...
...
@@ -190,7 +190,8 @@ HRESULT WINAPI BaseFilterImpl_QueryVendorInfo(IBaseFilter * iface, LPWSTR *pVend
VOID
WINAPI
BaseFilterImpl_IncrementPinVersion
(
BaseFilter
*
This
);
HRESULT
WINAPI
BaseFilter_Init
(
BaseFilter
*
This
,
const
IBaseFilterVtbl
*
Vtbl
,
const
CLSID
*
pClsid
,
DWORD_PTR
DebugInfo
,
const
BaseFilterFuncTable
*
pBaseFuncsTable
);
void
BaseFilter_Init
(
BaseFilter
*
filter
,
const
IBaseFilterVtbl
*
vtbl
,
const
CLSID
*
clsid
,
DWORD_PTR
debug_info
,
const
BaseFilterFuncTable
*
func_table
);
HRESULT
WINAPI
BaseFilter_Destroy
(
BaseFilter
*
This
);
/* Enums */
...
...
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