Skip to content

Commit

Permalink
Fix rebase issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Aug 13, 2023
1 parent 46cb1c8 commit 0d228de
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,10 @@ private static MediaFormat createFormat(String videoMimeType, int bitRate, int m
@Override
public void start(TerminationListener listener) {
thread = new Thread(() -> {
// Some devices (Meizu) deadlock if the video encoding thread has no Looper
// <https://github.com/Genymobile/scrcpy/issues/4143>
Looper.prepare();

try {
startStream();
} catch (ConfigurationException | CaptureForegroundException e) {
Expand Down

0 comments on commit 0d228de

Please sign in to comment.