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
559d541c
Commit
559d541c
authored
Mar 13, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Mar 13, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Cleanup properly around error conditions and avoid a potential infinite loop.
parent
8afb9483
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
acmwrapper.c
dlls/quartz/acmwrapper.c
+8
-6
No files found.
dlls/quartz/acmwrapper.c
View file @
559d541c
...
...
@@ -78,7 +78,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
hr
=
IPin_ConnectionMediaType
(
This
->
tf
.
ppPins
[
0
],
&
amt
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to retrieve media type
\n
"
);
goto
erro
r
;
return
h
r
;
}
while
(
!
stop
)
...
...
@@ -99,7 +99,7 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
hr
=
OutputPin_GetDeliveryBuffer
((
OutputPin
*
)
This
->
tf
.
ppPins
[
1
],
&
pSample
,
NULL
,
NULL
,
0
);
if
(
FAILED
(
hr
))
{
ERR
(
"Unable to get delivery buffer (%x)
\n
"
,
hr
);
goto
erro
r
;
return
h
r
;
}
hr
=
IMediaSample_SetActualDataLength
(
pSample
,
0
);
...
...
@@ -152,11 +152,13 @@ static HRESULT ACMWrapper_ProcessSampleData(TransformFilterImpl* pTransformFilte
}
error:
if
(
unprepare_header
&&
(
res
=
acmStreamUnprepareHeader
(
This
->
has
,
&
ash
,
0
)))
ERR
(
"Cannot unprepare header %d
\n
"
,
res
);
if
(
unprepare_header
&&
(
res
=
acmStreamUnprepareHeader
(
This
->
has
,
&
ash
,
0
)))
ERR
(
"Cannot unprepare header %d
\n
"
,
res
);
unprepare_header
=
FALSE
;
if
(
pSample
)
IMediaSample_Release
(
pSample
);
if
(
pSample
)
IMediaSample_Release
(
pSample
);
pSample
=
NULL
;
}
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