Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
8acffd0c
Commit
8acffd0c
authored
Jan 05, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix render picture out-of-memory handling
parent
e89f5f66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
11 deletions
+18
-11
src/video_output/video_output.c
src/video_output/video_output.c
+18
-11
No files found.
src/video_output/video_output.c
View file @
8acffd0c
...
...
@@ -912,6 +912,7 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
if
(
filtered
&&
(
vout
->
p
->
decoder_pool
!=
vout
->
p
->
display_pool
||
subpic
))
{
picture_t
*
render
;
if
(
vout
->
p
->
is_decoder_pool_slow
)
render
=
picture_NewFromFormat
(
&
vd
->
source
);
else
if
(
vout
->
p
->
decoder_pool
!=
vout
->
p
->
display_pool
)
...
...
@@ -919,17 +920,24 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
else
render
=
picture_pool_Get
(
vout
->
p
->
private_pool
);
if
(
render
)
{
picture_Copy
(
render
,
filtered
);
spu_RenderSubpictures
(
vout
->
p
->
spu
,
render
,
&
vd
->
source
,
subpic
,
&
vd
->
source
,
spu_render_time
);
if
(
unlikely
(
render
==
NULL
))
{
picture_Release
(
filtered
);
return
VLC_EGENERIC
;
}
picture_Copy
(
render
,
filtered
);
spu_RenderSubpictures
(
vout
->
p
->
spu
,
render
,
&
vd
->
source
,
subpic
,
&
vd
->
source
,
spu_render_time
);
if
(
vout
->
p
->
is_decoder_pool_slow
)
{
direct
=
picture_pool_Get
(
vout
->
p
->
display_pool
);
if
(
direct
)
picture_Copy
(
direct
,
render
);
if
(
unlikely
(
direct
==
NULL
))
{
picture_Release
(
render
);
picture_Release
(
filtered
);
return
VLC_EGENERIC
;
}
picture_Copy
(
direct
,
render
);
picture_Release
(
render
);
}
else
{
...
...
@@ -937,13 +945,12 @@ static int ThreadDisplayRenderPicture(vout_thread_t *vout, bool is_forced)
}
VideoFormatCopyCropAr
(
&
direct
->
format
,
&
filtered
->
format
);
picture_Release
(
filtered
);
filtered
=
NULL
;
}
else
{
direct
=
filtered
;
}
if
(
!
direct
)
return
VLC_EGENERIC
;
assert
(
direct
!=
NULL
);
/*
* Take a snapshot if requested
...
...
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