Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
cbb0ff37
Commit
cbb0ff37
authored
Apr 16, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Fix discontinuities in wave parser.
parent
3d8f5c15
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
waveparser.c
dlls/quartz/waveparser.c
+4
-6
No files found.
dlls/quartz/waveparser.c
View file @
cbb0ff37
...
...
@@ -167,10 +167,8 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample)
{
REFERENCE_TIME
tAviStart
,
tAviStop
,
tOffset
;
/* FIXME: hack */
if
(
pOutputPin
->
dwSamplesProcessed
==
0
)
{
IMediaSample_SetDiscontinuity
(
This
->
pCurrentSample
,
TRUE
);
}
IMediaSample_SetDiscontinuity
(
This
->
pCurrentSample
,
pOutputPin
->
dwSamplesProcessed
==
0
);
IMediaSample_SetSyncPoint
(
This
->
pCurrentSample
,
TRUE
);
pOutputPin
->
dwSamplesProcessed
++
;
...
...
@@ -195,8 +193,7 @@ static HRESULT WAVEParser_Sample(LPVOID iface, IMediaSample * pSample)
if
(
hr
==
S_FALSE
)
{
/* Break out */
offset_src
+=
chunk_remaining_bytes
;
This
->
Parser
.
pInputPin
->
rtCurrent
-=
BYTES_FROM_MEDIATIME
(
cbSrcStream
-
offset_src
);
This
->
Parser
.
pInputPin
->
rtCurrent
-=
MEDIATIME_FROM_BYTES
(
cbSrcStream
-
offset_src
-
chunk_remaining_bytes
);
hr
=
S_OK
;
break
;
}
...
...
@@ -297,6 +294,7 @@ static HRESULT WAVEParserImpl_seek(IBaseFilter *iface)
}
pPin
->
rtStart
=
pPin
->
rtCurrent
=
bytepos
;
((
Parser_OutputPin
*
)
This
->
Parser
.
ppPins
[
1
])
->
dwSamplesProcessed
=
0
;
LeaveCriticalSection
(
&
This
->
Parser
.
csFilter
);
TRACE
(
"Done flushing
\n
"
);
...
...
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