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
43c9fa30
Commit
43c9fa30
authored
Jan 21, 2015
by
Thomas Guillem
Committed by
Jean-Baptiste Kempf
Jan 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android_window: fix deadlock if android surface won't be created
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
095eb7fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/video_output/android/android_window.c
modules/video_output/android/android_window.c
+8
-0
No files found.
modules/video_output/android/android_window.c
View file @
43c9fa30
...
...
@@ -74,6 +74,7 @@ extern jobject jni_LockAndGetAndroidJavaSurface();
extern
jobject
jni_LockAndGetSubtitlesSurface
();
extern
void
jni_UnlockAndroidSurface
();
extern
bool
jni_IsVideoPlayerActivityCreated
();
extern
void
jni_SetSurfaceLayout
(
int
width
,
int
height
,
int
visible_width
,
int
visible_height
,
int
sar_num
,
int
sar_den
);
extern
int
jni_ConfigureSurface
(
jobject
jsurf
,
int
width
,
int
height
,
int
hal
,
bool
*
configured
);
extern
int
jni_GetWindowSize
(
int
*
width
,
int
*
height
);
...
...
@@ -618,6 +619,13 @@ static int Open(vlc_object_t *p_this)
if
(
vout_display_IsWindowed
(
vd
))
return
VLC_EGENERIC
;
/* XXX: android_window use a surface created by VideoPlayerActivity to
* alloc pictures. Don't try to open the vout if this activity is not
* created. This need to be replaced by something like var_CreateGetAddress
* (vd, "drawable-android") in the future. */
if
(
!
jni_IsVideoPlayerActivityCreated
())
return
VLC_EGENERIC
;
/* Allocate structure */
vd
->
sys
=
sys
=
(
struct
vout_display_sys_t
*
)
calloc
(
1
,
sizeof
(
*
sys
));
if
(
!
sys
)
...
...
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