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
cd4ee69e
Commit
cd4ee69e
authored
Sep 11, 2011
by
Erich Hoover
Committed by
Alexandre Julliard
Sep 12, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Samples should be freed when IAsyncReader::Request fails.
parent
bc204370
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
mpegsplit.c
dlls/quartz/mpegsplit.c
+14
-5
No files found.
dlls/quartz/mpegsplit.c
View file @
cd4ee69e
...
...
@@ -217,9 +217,14 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, IMediaSample *pCurrentSample)
IMediaSample_SetPreroll
(
sample
,
0
);
IMediaSample_SetDiscontinuity
(
sample
,
0
);
IMediaSample_SetSyncPoint
(
sample
,
1
);
pin
->
rtCurrent
=
rtSampleStart
;
pin
->
rtNext
=
rtSampleStop
;
hr
=
IAsyncReader_Request
(
pin
->
pReader
,
sample
,
0
);
if
(
SUCCEEDED
(
hr
))
{
pin
->
rtCurrent
=
rtSampleStart
;
pin
->
rtNext
=
rtSampleStop
;
}
else
IMediaSample_Release
(
sample
);
}
if
(
FAILED
(
hr
))
FIXME
(
"o_Ox%08x
\n
"
,
hr
);
...
...
@@ -754,15 +759,19 @@ static HRESULT MPEGSplitter_first_request(LPVOID iface)
hr
=
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
pin
->
rtCurrent
=
pin
->
rtNext
;
pin
->
rtNext
=
rtSampleStop
;
IMediaSample_SetPreroll
(
sample
,
FALSE
);
IMediaSample_SetDiscontinuity
(
sample
,
TRUE
);
IMediaSample_SetSyncPoint
(
sample
,
1
);
This
->
seek
=
0
;
hr
=
IAsyncReader_Request
(
pin
->
pReader
,
sample
,
0
);
if
(
SUCCEEDED
(
hr
))
{
pin
->
rtCurrent
=
pin
->
rtNext
;
pin
->
rtNext
=
rtSampleStop
;
}
else
IMediaSample_Release
(
sample
);
}
if
(
FAILED
(
hr
))
ERR
(
"Horsemen of the apocalypse came to bring error 0x%08x
\n
"
,
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