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
dc53f018
Commit
dc53f018
authored
May 21, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
May 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: COM cleanup for WAVEParserImpl.
parent
0352a7fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
waveparser.c
dlls/quartz/waveparser.c
+7
-2
No files found.
dlls/quartz/waveparser.c
View file @
dc53f018
...
...
@@ -53,6 +53,11 @@ static inline WAVEParserImpl *impl_from_IMediaSeeking( IMediaSeeking *iface )
return
CONTAINING_RECORD
(
iface
,
WAVEParserImpl
,
Parser
.
sourceSeeking
.
IMediaSeeking_iface
);
}
static
inline
WAVEParserImpl
*
impl_from_IBaseFilter
(
IBaseFilter
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
WAVEParserImpl
,
Parser
.
filter
.
IBaseFilter_iface
);
}
static
LONGLONG
bytepos_to_duration
(
WAVEParserImpl
*
This
,
LONGLONG
bytepos
)
{
LONGLONG
duration
=
BYTES_FROM_MEDIATIME
(
bytepos
-
This
->
StartOfFile
);
...
...
@@ -246,11 +251,11 @@ static HRESULT WAVEParser_InputPin_PreConnect(IPin * iface, IPin * pConnectPin,
LONGLONG
pos
=
0
;
/* in bytes */
PIN_INFO
piOutput
;
AM_MEDIA_TYPE
amt
;
WAVEParserImpl
*
pWAVEParser
=
(
WAVEParserImpl
*
)
This
->
pin
.
pinInfo
.
pFilter
;
WAVEParserImpl
*
pWAVEParser
=
impl_from_IBaseFilter
(
This
->
pin
.
pinInfo
.
pFilter
)
;
LONGLONG
length
,
avail
;
piOutput
.
dir
=
PINDIR_OUTPUT
;
piOutput
.
pFilter
=
(
IBaseFilter
*
)
This
;
piOutput
.
pFilter
=
&
pWAVEParser
->
Parser
.
filter
.
IBaseFilter_iface
;
lstrcpynW
(
piOutput
.
achName
,
wcsOutputPinName
,
sizeof
(
piOutput
.
achName
)
/
sizeof
(
piOutput
.
achName
[
0
]));
hr
=
IAsyncReader_SyncRead
(
This
->
pReader
,
pos
,
sizeof
(
list
),
(
BYTE
*
)
&
list
);
...
...
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