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
dd3fe639
Commit
dd3fe639
authored
Mar 28, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz/avidec: Use the strmbase_passthrough object directly.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f7a091af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
avidec.c
dlls/quartz/avidec.c
+6
-20
No files found.
dlls/quartz/avidec.c
View file @
dd3fe639
...
...
@@ -43,7 +43,7 @@ typedef struct AVIDecImpl
struct
strmbase_source
source
;
IQualityControl
source_IQualityControl_iface
;
IUnknown
*
seeking
;
struct
strmbase_passthrough
passthrough
;
struct
strmbase_sink
sink
;
...
...
@@ -300,7 +300,7 @@ static HRESULT avi_decompressor_source_query_interface(struct strmbase_pin *ifac
if
(
IsEqualGUID
(
iid
,
&
IID_IQualityControl
))
*
out
=
&
filter
->
source_IQualityControl_iface
;
else
if
(
IsEqualGUID
(
iid
,
&
IID_IMediaSeeking
))
return
IUnknown_QueryInterface
(
filter
->
seeking
,
iid
,
out
)
;
*
out
=
&
filter
->
passthrough
.
IMediaSeeking_iface
;
else
return
E_NOINTERFACE
;
...
...
@@ -548,10 +548,10 @@ static void avi_decompressor_destroy(struct strmbase_filter *iface)
strmbase_sink_cleanup
(
&
filter
->
sink
);
strmbase_source_cleanup
(
&
filter
->
source
);
strmbase_passthrough_cleanup
(
&
filter
->
passthrough
);
filter
->
stream_cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
filter
->
stream_cs
);
IUnknown_Release
(
filter
->
seeking
);
strmbase_filter_cleanup
(
&
filter
->
filter
);
free
(
filter
);
...
...
@@ -603,8 +603,6 @@ static const struct strmbase_filter_ops filter_ops =
HRESULT
avi_dec_create
(
IUnknown
*
outer
,
IUnknown
**
out
)
{
AVIDecImpl
*
object
;
ISeekingPassThru
*
passthrough
;
HRESULT
hr
;
if
(
!
(
object
=
calloc
(
1
,
sizeof
(
*
object
))))
return
E_OUTOFMEMORY
;
...
...
@@ -618,21 +616,9 @@ HRESULT avi_dec_create(IUnknown *outer, IUnknown **out)
strmbase_source_init
(
&
object
->
source
,
&
object
->
filter
,
L"Out"
,
&
source_ops
);
object
->
source_IQualityControl_iface
.
lpVtbl
=
&
source_qc_vtbl
;
if
(
FAILED
(
hr
=
CoCreateInstance
(
&
CLSID_SeekingPassThru
,
(
IUnknown
*
)
&
object
->
source
.
pin
.
IPin_iface
,
CLSCTX_INPROC_SERVER
,
&
IID_IUnknown
,
(
void
**
)
&
object
->
seeking
)))
{
strmbase_sink_cleanup
(
&
object
->
sink
);
strmbase_source_cleanup
(
&
object
->
source
);
strmbase_filter_cleanup
(
&
object
->
filter
);
free
(
object
);
return
hr
;
}
IUnknown_QueryInterface
(
object
->
seeking
,
&
IID_ISeekingPassThru
,
(
void
**
)
&
passthrough
);
ISeekingPassThru_Init
(
passthrough
,
FALSE
,
&
object
->
sink
.
pin
.
IPin_iface
);
ISeekingPassThru_Release
(
passthrough
);
strmbase_passthrough_init
(
&
object
->
passthrough
,
(
IUnknown
*
)
&
object
->
source
.
pin
.
IPin_iface
);
ISeekingPassThru_Init
(
&
object
->
passthrough
.
ISeekingPassThru_iface
,
FALSE
,
&
object
->
sink
.
pin
.
IPin_iface
);
TRACE
(
"Created AVI decompressor %p.
\n
"
,
object
);
*
out
=
&
object
->
filter
.
IUnknown_inner
;
...
...
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