Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
15403606
Commit
15403606
authored
Dec 12, 2019
by
Sylvain Berfini
🎩
Browse files
Fixed crash in AndroidPlatformHelper
parent
e4a9af55
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
wrappers/java/classes/tools/AndroidPlatformHelper.java
wrappers/java/classes/tools/AndroidPlatformHelper.java
+6
-4
No files found.
wrappers/java/classes/tools/AndroidPlatformHelper.java
View file @
15403606
...
...
@@ -514,11 +514,13 @@ public class AndroidPlatformHelper {
public
boolean
onSurfaceTextureDestroyed
(
SurfaceTexture
surface
)
{
Log
.
i
(
"[Platform Helper] Rendering surface texture destroyed"
);
if
(
mNativePtr
!=
0
&&
surface
.
equals
(
mVideoTextureView
.
getSurfaceTexture
()))
{
if
(
mNativePtr
!=
0
&&
mVideoTextureView
!=
null
)
{
if
(
surface
.
equals
(
mVideoTextureView
.
getSurfaceTexture
())
{
Log
.
i
(
"[Platform Helper] Current rendering surface texture is no longer available"
);
mVideoTextureView
=
null
;
setNativeVideoWindowId
(
mNativePtr
,
null
);
}
}
if
(!
DeviceUtils
.
isSurfaceTextureReleased
(
surface
))
{
Log
.
i
(
"[Platform Helper] Releasing window surface"
);
...
...
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