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
e73f31a6
Commit
e73f31a6
authored
Aug 27, 2009
by
Juan Lang
Committed by
Alexandre Julliard
Aug 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Don't crash if sample allocation fails.
parent
d0b7a70b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
mpegsplit.c
dlls/quartz/mpegsplit.c
+9
-9
No files found.
dlls/quartz/mpegsplit.c
View file @
e73f31a6
...
...
@@ -202,20 +202,20 @@ static HRESULT FillBuffer(MPEGSplitterImpl *This, IMediaSample *pCurrentSample)
LONGLONG
rtSampleStart
=
pin
->
rtNext
-
MEDIATIME_FROM_BYTES
(
4
);
LONGLONG
rtSampleStop
=
rtSampleStart
+
MEDIATIME_FROM_BYTES
(
length
+
4
);
hr
=
IMemAllocator_GetBuffer
(
pin
->
pAlloc
,
&
sample
,
NULL
,
NULL
,
0
);
if
(
rtSampleStop
>
pin
->
rtStop
)
rtSampleStop
=
MEDIATIME_FROM_BYTES
(
ALIGNUP
(
BYTES_FROM_MEDIATIME
(
pin
->
rtStop
),
pin
->
cbAlign
));
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
IMediaSample_SetPreroll
(
sample
,
0
);
IMediaSample_SetDiscontinuity
(
sample
,
0
);
IMediaSample_SetSyncPoint
(
sample
,
1
);
pin
->
rtCurrent
=
rtSampleStart
;
pin
->
rtNext
=
rtSampleStop
;
hr
=
IMemAllocator_GetBuffer
(
pin
->
pAlloc
,
&
sample
,
NULL
,
NULL
,
0
);
if
(
SUCCEEDED
(
hr
))
{
IMediaSample_SetTime
(
sample
,
&
rtSampleStart
,
&
rtSampleStop
);
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
(
FAILED
(
hr
))
FIXME
(
"o_Ox%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