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
08e519a4
Commit
08e519a4
authored
Jul 31, 2015
by
Thomas Guillem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android: AWindowHandler_releaseSurface now release the ANativeWindow
parent
52e2e90f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
modules/codec/omxil/mediacodec.c
modules/codec/omxil/mediacodec.c
+0
-3
modules/video_output/android/utils.c
modules/video_output/android/utils.c
+1
-3
modules/video_output/android/utils.h
modules/video_output/android/utils.h
+2
-1
No files found.
modules/codec/omxil/mediacodec.c
View file @
08e519a4
...
...
@@ -431,10 +431,7 @@ static void StopMediaCodec(decoder_t *p_dec)
p_sys
->
api
->
stop
(
p_sys
->
api
);
if
(
p_dec
->
fmt_in
.
i_cat
==
VIDEO_ES
&&
p_sys
->
u
.
video
.
p_awh
)
{
AWindowHandler_releaseANativeWindow
(
p_sys
->
u
.
video
.
p_awh
,
AWindow_Video
);
AWindowHandler_releaseSurface
(
p_sys
->
u
.
video
.
p_awh
,
AWindow_Video
);
}
}
/*****************************************************************************
...
...
modules/video_output/android/utils.c
View file @
08e519a4
...
...
@@ -514,6 +514,7 @@ static void
AWindowHandler_releaseSurfaceEnv
(
AWindowHandler
*
p_awh
,
JNIEnv
*
p_env
,
enum
AWindow_ID
id
)
{
AWindowHandler_releaseANativeWindow
(
p_awh
,
id
);
if
(
p_awh
->
views
[
id
].
jsurface
)
{
(
*
p_env
)
->
DeleteGlobalRef
(
p_env
,
p_awh
->
views
[
id
].
jsurface
);
...
...
@@ -526,9 +527,6 @@ AWindowHandler_destroy(AWindowHandler *p_awh)
{
JNIEnv
*
p_env
=
AWindowHandler_getEnv
(
p_awh
);
AWindowHandler_releaseANativeWindow
(
p_awh
,
AWindow_Video
);
AWindowHandler_releaseANativeWindow
(
p_awh
,
AWindow_Subtitles
);
if
(
p_env
)
{
if
(
p_awh
->
event
.
b_registered
)
...
...
modules/video_output/android/utils.h
View file @
08e519a4
...
...
@@ -148,7 +148,8 @@ void AWindowHandler_releaseSurface(AWindowHandler *p_awh, enum AWindow_ID id);
/**
* This function returns the Video or the Subtitles ANativeWindow attached to
* the Android Surface. It can be released with
* AWindowHandler_releaseANativeWindow or by AWindowHandler_destroy.
* AWindowHandler_releaseANativeWindow, AWindowHandler_releaseSurface or by
* AWindowHandler_destroy.
*/
ANativeWindow
*
AWindowHandler_getANativeWindow
(
AWindowHandler
*
p_awh
,
enum
AWindow_ID
id
);
...
...
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