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
a1d65ac3
Commit
a1d65ac3
authored
Jun 12, 2019
by
Zebediah Figura
Committed by
Alexandre Julliard
Jun 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Return void from InputPin_Init().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d16bc95b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
pin.c
dlls/strmbase/pin.c
+6
-12
No files found.
dlls/strmbase/pin.c
View file @
a1d65ac3
...
...
@@ -1109,9 +1109,9 @@ static const IMemInputPinVtbl MemInputPin_Vtbl =
MemInputPin_ReceiveCanBlock
};
static
HRESULT
InputPin_Init
(
const
IPinVtbl
*
vtbl
,
const
PIN_INFO
*
info
,
const
BaseInputPinFuncTable
*
func_table
,
CRITICAL_SECTION
*
cs
,
IMemAllocator
*
allocator
,
BaseInputPin
*
pin
)
static
void
strmbase_sink_init
(
BaseInputPin
*
pin
,
const
IPinVtbl
*
vtbl
,
const
PIN_INFO
*
info
,
const
BaseInputPinFuncTable
*
func_table
,
CRITICAL_SECTION
*
cs
,
IMemAllocator
*
allocator
)
{
memset
(
pin
,
0
,
sizeof
(
*
pin
));
strmbase_pin_init
(
&
pin
->
pin
,
vtbl
,
&
func_table
->
base
,
info
,
cs
);
...
...
@@ -1120,8 +1120,6 @@ static HRESULT InputPin_Init(const IPinVtbl *vtbl, const PIN_INFO *info,
if
(
pin
->
preferred_allocator
)
IMemAllocator_AddRef
(
pin
->
preferred_allocator
);
pin
->
IMemInputPin_iface
.
lpVtbl
=
&
MemInputPin_Vtbl
;
return
S_OK
;
}
HRESULT
BaseInputPin_Construct
(
const
IPinVtbl
*
InputPin_Vtbl
,
LONG
inputpin_size
,
const
PIN_INFO
*
pPinInfo
,
...
...
@@ -1146,14 +1144,10 @@ HRESULT BaseInputPin_Construct(const IPinVtbl *InputPin_Vtbl, LONG inputpin_size
if
(
!
pPinImpl
)
return
E_OUTOFMEMORY
;
if
(
SUCCEEDED
(
InputPin_Init
(
InputPin_Vtbl
,
pPinInfo
,
vtbl
,
pCritSec
,
allocator
,
pPinImpl
)))
{
*
ppPin
=
&
pPinImpl
->
pin
.
IPin_iface
;
return
S_OK
;
}
strmbase_sink_init
(
pPinImpl
,
InputPin_Vtbl
,
pPinInfo
,
vtbl
,
pCritSec
,
allocator
);
CoTaskMemFree
(
pPinImpl
)
;
return
E_FAIL
;
*
ppPin
=
&
pPinImpl
->
pin
.
IPin_iface
;
return
S_OK
;
}
HRESULT
WINAPI
BaseInputPin_Destroy
(
BaseInputPin
*
This
)
...
...
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