Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7871ce36
Commit
7871ce36
authored
Apr 21, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Apr 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vout: warn when we get less display pictures than requested
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
023a8a58
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
src/video_output/vout_wrapper.c
src/video_output/vout_wrapper.c
+9
-3
No files found.
src/video_output/vout_wrapper.c
View file @
7871ce36
...
...
@@ -130,9 +130,15 @@ int vout_InitWrapper(vout_thread_t *vout)
const
unsigned
reserved_picture
=
DISPLAY_PICTURE_COUNT
+
private_picture
+
kept_picture
;
picture_pool_t
*
display_pool
=
vout_display_Pool
(
vd
,
allow_dr
?
__MAX
(
VOUT_MAX_PICTURES
,
reserved_picture
+
decoder_picture
)
:
3
);
const
unsigned
display_pool_size
=
allow_dr
?
__MAX
(
VOUT_MAX_PICTURES
,
reserved_picture
+
decoder_picture
)
:
3
;
picture_pool_t
*
display_pool
=
vout_display_Pool
(
vd
,
display_pool_size
);
#ifndef NDEBUG
if
(
picture_pool_GetSize
(
display_pool
)
<
display_pool_size
)
msg_Warn
(
vout
,
"Not enough display buffers in the pool, requested %d got %d"
,
display_pool_size
,
picture_pool_GetSize
(
display_pool
));
#endif
if
(
allow_dr
&&
picture_pool_GetSize
(
display_pool
)
>=
reserved_picture
+
decoder_picture
)
{
sys
->
dpb_size
=
picture_pool_GetSize
(
display_pool
)
-
reserved_picture
;
...
...
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