mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-04-19 15:00:22 +00:00
Start the video renderer earlier to give it time to warm up
This commit is contained in:
@@ -154,6 +154,13 @@ public class VideoStream {
|
|||||||
throw new IOException("Video decoder failed to initialize. Please restart your device and try again.");
|
throw new IOException("Video decoder failed to initialize. Please restart your device and try again.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Start the renderer
|
||||||
|
if (!decRend.start(depacketizer)) {
|
||||||
|
abort();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
startedRendering = true;
|
||||||
|
|
||||||
// Open RTP sockets and start session
|
// Open RTP sockets and start session
|
||||||
setupRtpSession();
|
setupRtpSession();
|
||||||
|
|
||||||
@@ -172,13 +179,6 @@ public class VideoStream {
|
|||||||
// Start the receive thread early to avoid missing
|
// Start the receive thread early to avoid missing
|
||||||
// early packets
|
// early packets
|
||||||
startReceiveThread();
|
startReceiveThread();
|
||||||
|
|
||||||
// Start the renderer
|
|
||||||
if (!decRend.start(depacketizer)) {
|
|
||||||
abort();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
startedRendering = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user