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
5fb58eae
Commit
5fb58eae
authored
Oct 21, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Oct 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Minor cleanup of returned interface pointers.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a3e4c694
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
16 deletions
+14
-16
avisplit.c
dlls/quartz/avisplit.c
+1
-1
filesource.c
dlls/quartz/filesource.c
+4
-6
mpegsplit.c
dlls/quartz/mpegsplit.c
+1
-1
parser.c
dlls/quartz/parser.c
+5
-5
systemclock.c
dlls/quartz/systemclock.c
+1
-1
vmr9.c
dlls/quartz/vmr9.c
+1
-1
waveparser.c
dlls/quartz/waveparser.c
+1
-1
No files found.
dlls/quartz/avisplit.c
View file @
5fb58eae
...
@@ -1451,7 +1451,7 @@ HRESULT AVISplitter_create(IUnknown * pUnkOuter, LPVOID * ppv)
...
@@ -1451,7 +1451,7 @@ HRESULT AVISplitter_create(IUnknown * pUnkOuter, LPVOID * ppv)
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
*
ppv
=
This
;
*
ppv
=
&
This
->
Parser
.
filter
.
IBaseFilter_iface
;
return
hr
;
return
hr
;
}
}
dlls/quartz/filesource.c
View file @
5fb58eae
...
@@ -810,20 +810,18 @@ static HRESULT WINAPI FileAsyncReaderPin_QueryInterface(IPin * iface, REFIID rii
...
@@ -810,20 +810,18 @@ static HRESULT WINAPI FileAsyncReaderPin_QueryInterface(IPin * iface, REFIID rii
*
ppv
=
NULL
;
*
ppv
=
NULL
;
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
))
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IPin
))
*
ppv
=
This
;
*
ppv
=
&
This
->
pin
.
pin
.
IPin_iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IPin
))
*
ppv
=
This
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IAsyncReader
))
else
if
(
IsEqualIID
(
riid
,
&
IID_IAsyncReader
))
*
ppv
=
&
This
->
IAsyncReader_iface
;
*
ppv
=
&
This
->
IAsyncReader_iface
;
if
(
*
ppv
)
if
(
*
ppv
)
{
{
IUnknown_AddRef
((
IUnknown
*
)
(
*
ppv
)
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
}
if
(
!
IsEqualIID
(
riid
,
&
IID_I
Pin
)
&&
!
IsEqualIID
(
riid
,
&
IID_I
MediaSeeking
))
if
(
!
IsEqualIID
(
riid
,
&
IID_IMediaSeeking
))
FIXME
(
"No interface for %s!
\n
"
,
qzdebugstr_guid
(
riid
));
FIXME
(
"No interface for %s!
\n
"
,
qzdebugstr_guid
(
riid
));
return
E_NOINTERFACE
;
return
E_NOINTERFACE
;
...
...
dlls/quartz/mpegsplit.c
View file @
5fb58eae
...
@@ -797,7 +797,7 @@ HRESULT MPEGSplitter_create(IUnknown * pUnkOuter, LPVOID * ppv)
...
@@ -797,7 +797,7 @@ HRESULT MPEGSplitter_create(IUnknown * pUnkOuter, LPVOID * ppv)
This
->
seek
=
TRUE
;
This
->
seek
=
TRUE
;
/* Note: This memory is managed by the parser filter once created */
/* Note: This memory is managed by the parser filter once created */
*
ppv
=
This
;
*
ppv
=
&
This
->
Parser
.
filter
.
IBaseFilter_iface
;
return
hr
;
return
hr
;
}
}
dlls/quartz/parser.c
View file @
5fb58eae
...
@@ -147,11 +147,11 @@ HRESULT WINAPI Parser_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID *
...
@@ -147,11 +147,11 @@ HRESULT WINAPI Parser_QueryInterface(IBaseFilter * iface, REFIID riid, LPVOID *
||
IsEqualIID
(
riid
,
&
IID_IPersist
)
||
IsEqualIID
(
riid
,
&
IID_IPersist
)
||
IsEqualIID
(
riid
,
&
IID_IMediaFilter
)
||
IsEqualIID
(
riid
,
&
IID_IMediaFilter
)
||
IsEqualIID
(
riid
,
&
IID_IBaseFilter
)
)
||
IsEqualIID
(
riid
,
&
IID_IBaseFilter
)
)
*
ppv
=
This
;
*
ppv
=
&
This
->
filter
.
IBaseFilter_iface
;
if
(
*
ppv
)
if
(
*
ppv
)
{
{
IUnknown_AddRef
((
IUnknown
*
)
(
*
ppv
)
);
IUnknown_AddRef
((
IUnknown
*
)
*
ppv
);
return
S_OK
;
return
S_OK
;
}
}
...
@@ -521,21 +521,21 @@ static HRESULT WINAPI Parser_Seeking_QueryInterface(IMediaSeeking * iface, REFII
...
@@ -521,21 +521,21 @@ static HRESULT WINAPI Parser_Seeking_QueryInterface(IMediaSeeking * iface, REFII
{
{
ParserImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
ParserImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
I
Unknown_QueryInterface
((
IUnknown
*
)
This
,
riid
,
ppv
);
return
I
BaseFilter_QueryInterface
(
&
This
->
filter
.
IBaseFilter_iface
,
riid
,
ppv
);
}
}
static
ULONG
WINAPI
Parser_Seeking_AddRef
(
IMediaSeeking
*
iface
)
static
ULONG
WINAPI
Parser_Seeking_AddRef
(
IMediaSeeking
*
iface
)
{
{
ParserImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
ParserImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
I
Unknown_AddRef
((
IUnknown
*
)
This
);
return
I
BaseFilter_AddRef
(
&
This
->
filter
.
IBaseFilter_iface
);
}
}
static
ULONG
WINAPI
Parser_Seeking_Release
(
IMediaSeeking
*
iface
)
static
ULONG
WINAPI
Parser_Seeking_Release
(
IMediaSeeking
*
iface
)
{
{
ParserImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
ParserImpl
*
This
=
impl_from_IMediaSeeking
(
iface
);
return
I
Unknown_Release
((
IUnknown
*
)
This
);
return
I
BaseFilter_Release
(
&
This
->
filter
.
IBaseFilter_iface
);
}
}
static
const
IMediaSeekingVtbl
Parser_Seeking_Vtbl
=
static
const
IMediaSeekingVtbl
Parser_Seeking_Vtbl
=
...
...
dlls/quartz/systemclock.c
View file @
5fb58eae
...
@@ -215,7 +215,7 @@ static HRESULT WINAPI SystemClockImpl_QueryInterface(IReferenceClock* iface, REF
...
@@ -215,7 +215,7 @@ static HRESULT WINAPI SystemClockImpl_QueryInterface(IReferenceClock* iface, REF
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IReferenceClock
))
{
IsEqualIID
(
riid
,
&
IID_IReferenceClock
))
{
SystemClockImpl_AddRef
(
iface
);
SystemClockImpl_AddRef
(
iface
);
*
ppobj
=
This
;
*
ppobj
=
&
This
->
IReferenceClock_iface
;
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/quartz/vmr9.c
View file @
5fb58eae
...
@@ -3111,6 +3111,6 @@ static HRESULT VMR9DefaultAllocatorPresenterImpl_create(struct quartz_vmr *paren
...
@@ -3111,6 +3111,6 @@ static HRESULT VMR9DefaultAllocatorPresenterImpl_create(struct quartz_vmr *paren
This
->
SurfaceAllocatorNotify
=
NULL
;
This
->
SurfaceAllocatorNotify
=
NULL
;
This
->
reset
=
FALSE
;
This
->
reset
=
FALSE
;
*
ppv
=
This
;
*
ppv
=
&
This
->
IVMRImagePresenter9_iface
;
return
S_OK
;
return
S_OK
;
}
}
dlls/quartz/waveparser.c
View file @
5fb58eae
...
@@ -440,7 +440,7 @@ HRESULT WAVEParser_create(IUnknown * pUnkOuter, LPVOID * ppv)
...
@@ -440,7 +440,7 @@ HRESULT WAVEParser_create(IUnknown * pUnkOuter, LPVOID * ppv)
if
(
FAILED
(
hr
))
if
(
FAILED
(
hr
))
return
hr
;
return
hr
;
*
ppv
=
This
;
*
ppv
=
&
This
->
Parser
.
filter
.
IBaseFilter_iface
;
return
hr
;
return
hr
;
}
}
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