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
b2bf1acb
Commit
b2bf1acb
authored
Nov 19, 2014
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Nov 19, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android_window: use anwp.getMaxBufferCount
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
7423c2bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/video_output/android/android_window.c
modules/video_output/android/android_window.c
+6
-6
No files found.
modules/video_output/android/android_window.c
View file @
b2bf1acb
...
...
@@ -43,9 +43,6 @@
/*****************************************************************************
* Module descriptor
*****************************************************************************/
#define PRIV_WINDOW_MAX_BUFFER_COUNT 32
#define PRIV_WINDOW_MIN_BUFFER_COUNT 2
#define USE_ANWP
#define CHROMA_TEXT N_("Chroma used")
#define CHROMA_LONGTEXT N_(\
...
...
@@ -340,6 +337,8 @@ static int AndroidWindow_SetSurface(vout_display_sys_t *sys,
static
int
AndroidWindow_SetupANWP
(
vout_display_sys_t
*
sys
,
android_window
*
p_window
)
{
unsigned
int
i_max_buffer_count
=
0
;
if
(
!
p_window
->
p_handle_priv
)
p_window
->
p_handle_priv
=
sys
->
anwp
.
connect
(
p_window
->
p_handle
);
...
...
@@ -355,10 +354,11 @@ static int AndroidWindow_SetupANWP(vout_display_sys_t *sys,
sys
->
anwp
.
getMinUndequeued
(
p_window
->
p_handle_priv
,
&
p_window
->
i_min_undequeued
);
sys
->
anwp
.
getMaxBufferCount
(
p_window
->
p_handle_priv
,
&
i_max_buffer_count
);
if
((
p_window
->
i_min_undequeued
+
p_window
->
i_pic_count
)
>
PRIV_WINDOW_MAX_BUFFER_COUNT
)
p_window
->
i_pic_count
=
PRIV_WINDOW_MAX_BUFFER_COUNT
-
p_window
->
i_min_undequeued
;
i_max_buffer_count
)
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
)
...
...
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