Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
72773a86
authored
Dec 05, 2022
by
kimvde
Committed by
Ian Baker
Dec 12, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Avoid sending message on dead thread
PiperOrigin-RevId: 493040714
parent
656b346e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformerInternal.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/TransformerInternal.java
View file @
72773a86
...
...
@@ -200,6 +200,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
}
public
void
cancel
()
{
if
(
released
)
{
return
;
}
internalHandler
.
obtainMessage
(
MSG_END
,
END_REASON_CANCELLED
,
/* unused */
0
,
/* transformationException */
null
)
...
...
@@ -333,6 +336,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
releaseTransformationException
=
TransformationException
.
createForUnexpected
(
e
);
cancelException
=
e
;
}
// Quit thread lazily so that all events that got triggered when releasing the AssetLoader are
// still delivered.
internalHandler
.
post
(
internalHandlerThread:
:
quitSafely
);
}
if
(!
forCancellation
)
{
...
...
@@ -352,7 +358,6 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
}
}
internalHandlerThread
.
quitSafely
();
cancellingConditionVariable
.
open
();
}
...
...
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