mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-02-17 20:04:27 +01:00
Fix meizu 16th NPE
Fill AppInfo to avoid NullPointerException on some devices. Fixes <https://github.com/Genymobile/scrcpy/issues/365> Signed-off-by: Romain Vimont <rom@rom1v.com>
This commit is contained in:
@@ -53,6 +53,7 @@ public class ScreenEncoder implements Device.RotationListener {
|
||||
|
||||
public void streamScreen(Device device, FileDescriptor fd) throws IOException {
|
||||
Workarounds.prepareMainLooper();
|
||||
Workarounds.fillAppInfo();
|
||||
|
||||
MediaFormat format = createFormat(bitRate, maxFps, iFrameInterval);
|
||||
device.setRotationListener(this);
|
||||
|
||||
Reference in New Issue
Block a user