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
875b8a6d
Commit
875b8a6d
authored
Nov 25, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strmbase: Remove some of casts to interface pointers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
61105aee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
10 deletions
+13
-10
pin.c
dlls/strmbase/pin.c
+1
-1
pospass.c
dlls/strmbase/pospass.c
+6
-6
renderer.c
dlls/strmbase/renderer.c
+4
-2
transform.c
dlls/strmbase/transform.c
+2
-1
No files found.
dlls/strmbase/pin.c
View file @
875b8a6d
...
...
@@ -1210,7 +1210,7 @@ HRESULT BaseInputPin_Construct(const IPinVtbl *InputPin_Vtbl, LONG inputpin_size
if
(
SUCCEEDED
(
InputPin_Init
(
InputPin_Vtbl
,
pPinInfo
,
vtbl
,
pCritSec
,
allocator
,
pPinImpl
)))
{
*
ppPin
=
(
IPin
*
)
pPinImpl
;
*
ppPin
=
&
pPinImpl
->
pin
.
IPin_iface
;
return
S_OK
;
}
...
...
dlls/strmbase/pospass.c
View file @
875b8a6d
...
...
@@ -152,9 +152,9 @@ static HRESULT SeekOuter_QueryInterface(PassThruImpl *This, REFIID riid, LPVOID
{
HRESULT
hr
;
IUnknown_AddRef
(
(
IUnknown
*
)
&
(
This
->
IUnknown_inner
)
);
hr
=
IUnknown_QueryInterface
(
(
IUnknown
*
)
&
(
This
->
IUnknown_inner
)
,
riid
,
ppv
);
IUnknown_Release
(
(
IUnknown
*
)
&
(
This
->
IUnknown_inner
)
);
IUnknown_AddRef
(
&
This
->
IUnknown_inner
);
hr
=
IUnknown_QueryInterface
(
&
This
->
IUnknown_inner
,
riid
,
ppv
);
IUnknown_Release
(
&
This
->
IUnknown_inner
);
This
->
bAggregatable
=
TRUE
;
return
hr
;
}
...
...
@@ -163,21 +163,21 @@ static HRESULT SeekOuter_QueryInterface(PassThruImpl *This, REFIID riid, LPVOID
return
E_NOINTERFACE
;
}
return
IUnknown_QueryInterface
(
(
IUnknown
*
)
&
(
This
->
IUnknown_inner
)
,
riid
,
ppv
);
return
IUnknown_QueryInterface
(
&
This
->
IUnknown_inner
,
riid
,
ppv
);
}
static
ULONG
SeekOuter_AddRef
(
PassThruImpl
*
This
)
{
if
(
This
->
outer_unk
&&
This
->
bUnkOuterValid
)
return
IUnknown_AddRef
(
This
->
outer_unk
);
return
IUnknown_AddRef
(
(
IUnknown
*
)
&
(
This
->
IUnknown_inner
)
);
return
IUnknown_AddRef
(
&
This
->
IUnknown_inner
);
}
static
ULONG
SeekOuter_Release
(
PassThruImpl
*
This
)
{
if
(
This
->
outer_unk
&&
This
->
bUnkOuterValid
)
return
IUnknown_Release
(
This
->
outer_unk
);
return
IUnknown_Release
(
(
IUnknown
*
)
&
(
This
->
IUnknown_inner
)
);
return
IUnknown_Release
(
&
This
->
IUnknown_inner
);
}
static
HRESULT
WINAPI
SeekingPassThru_QueryInterface
(
ISeekingPassThru
*
iface
,
REFIID
riid
,
LPVOID
*
ppvObj
)
...
...
dlls/strmbase/renderer.c
View file @
875b8a6d
...
...
@@ -238,7 +238,8 @@ static const BaseInputPinFuncTable input_BaseInputFuncTable = {
};
HRESULT
WINAPI
BaseRenderer_Init
(
BaseRenderer
*
This
,
const
IBaseFilterVtbl
*
Vtbl
,
IUnknown
*
pUnkOuter
,
const
CLSID
*
pClsid
,
DWORD_PTR
DebugInfo
,
const
BaseRendererFuncTable
*
pBaseFuncsTable
)
HRESULT
WINAPI
BaseRenderer_Init
(
BaseRenderer
*
This
,
const
IBaseFilterVtbl
*
Vtbl
,
IUnknown
*
pUnkOuter
,
const
CLSID
*
pClsid
,
DWORD_PTR
DebugInfo
,
const
BaseRendererFuncTable
*
pBaseFuncsTable
)
{
PIN_INFO
piInput
;
HRESULT
hr
;
...
...
@@ -257,7 +258,8 @@ HRESULT WINAPI BaseRenderer_Init(BaseRenderer * This, const IBaseFilterVtbl *Vtb
if
(
SUCCEEDED
(
hr
))
{
hr
=
CreatePosPassThru
(
pUnkOuter
?
pUnkOuter
:
(
IUnknown
*
)
This
,
TRUE
,
&
This
->
pInputPin
->
pin
.
IPin_iface
,
&
This
->
pPosition
);
hr
=
CreatePosPassThru
(
pUnkOuter
?
pUnkOuter
:
(
IUnknown
*
)
&
This
->
filter
.
IBaseFilter_iface
,
TRUE
,
&
This
->
pInputPin
->
pin
.
IPin_iface
,
&
This
->
pPosition
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
dlls/strmbase/transform.c
View file @
875b8a6d
...
...
@@ -241,7 +241,8 @@ static HRESULT TransformFilter_Init(const IBaseFilterVtbl *pVtbl, const CLSID* p
{
ISeekingPassThru
*
passthru
;
pTransformFilter
->
seekthru_unk
=
NULL
;
hr
=
CoCreateInstance
(
&
CLSID_SeekingPassThru
,
(
IUnknown
*
)
pTransformFilter
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
pTransformFilter
->
seekthru_unk
);
hr
=
CoCreateInstance
(
&
CLSID_SeekingPassThru
,
(
IUnknown
*
)
&
pTransformFilter
->
filter
.
IBaseFilter_iface
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
pTransformFilter
->
seekthru_unk
);
if
(
SUCCEEDED
(
hr
))
{
IUnknown_QueryInterface
(
pTransformFilter
->
seekthru_unk
,
&
IID_ISeekingPassThru
,
(
void
**
)
&
passthru
);
...
...
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