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
63db4432
Commit
63db4432
authored
Nov 21, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Nov 21, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android_window: don't add min_undequeued in the pool size
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
a522648d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
modules/video_output/android/android_window.c
modules/video_output/android/android_window.c
+3
-9
No files found.
modules/video_output/android/android_window.c
View file @
63db4432
...
...
@@ -298,13 +298,6 @@ static int AndroidWindow_UpdateCrop(vout_display_sys_t *sys,
p_window
->
fmt
.
i_visible_height
);
}
static
unsigned
int
AndroidWindow_GetPicCount
(
vout_display_sys_t
*
sys
,
android_window
*
p_window
)
{
VLC_UNUSED
(
sys
);
return
p_window
->
i_min_undequeued
+
p_window
->
i_pic_count
;
}
static
int
AndroidWindow_SetSurface
(
vout_display_sys_t
*
sys
,
android_window
*
p_window
,
jobject
jsurf
)
...
...
@@ -361,7 +354,8 @@ static int AndroidWindow_SetupANWP(vout_display_sys_t *sys,
p_window
->
i_pic_count
=
i_max_buffer_count
-
p_window
->
i_min_undequeued
;
if
(
sys
->
anwp
.
setBufferCount
(
p_window
->
p_handle_priv
,
AndroidWindow_GetPicCount
(
sys
,
p_window
))
!=
0
)
p_window
->
i_pic_count
+
p_window
->
i_min_undequeued
)
!=
0
)
goto
error
;
if
(
sys
->
anwp
.
setOrientation
(
p_window
->
p_handle_priv
,
...
...
@@ -732,7 +726,7 @@ static picture_pool_t *PoolAlloc(vout_display_t *vd, unsigned requested_count)
if
(
SetupWindowSurface
(
sys
,
requested_count
)
!=
0
)
goto
error
;
requested_count
=
AndroidWindow_GetPicCount
(
sys
,
sys
->
p_window
)
;
requested_count
=
sys
->
p_window
->
i_pic_count
;
msg_Dbg
(
vd
,
"PoolAlloc: got %d frames"
,
requested_count
);
UpdateWindowSize
(
&
sys
->
p_window
->
fmt
,
sys
->
p_window
->
b_use_priv
);
...
...
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