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
17234734
Commit
17234734
authored
Apr 18, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Apr 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Make acmwrapper respect preroll samples.
parent
d16639d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
acmwrapper.c
dlls/quartz/acmwrapper.c
+4
-1
No files found.
dlls/quartz/acmwrapper.c
View file @
17234734
...
...
@@ -58,7 +58,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
LPBYTE
pbDstStream
;
LPBYTE
pbSrcStream
=
NULL
;
ACMSTREAMHEADER
ash
;
BOOL
unprepare_header
=
FALSE
;
BOOL
unprepare_header
=
FALSE
,
preroll
;
MMRESULT
res
;
HRESULT
hr
;
LONGLONG
tStart
=
-
1
,
tStop
=
-
1
,
tMed
;
...
...
@@ -70,6 +70,8 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
return
hr
;
}
preroll
=
(
IMediaSample_IsPreroll
(
pSample
)
==
S_OK
);
IMediaSample_GetTime
(
pSample
,
&
tStart
,
&
tStop
);
cbSrcStream
=
IMediaSample_GetActualDataLength
(
pSample
);
...
...
@@ -91,6 +93,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
ERR
(
"Unable to get delivery buffer (%x)
\n
"
,
hr
);
return
hr
;
}
IMediaSample_SetPreroll
(
pOutSample
,
preroll
);
hr
=
IMediaSample_SetActualDataLength
(
pOutSample
,
0
);
assert
(
hr
==
S_OK
);
...
...
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