mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2025-07-20 11:33:06 +00:00
Start the video renderer earlier to give it time to warm up
This commit is contained in:
parent
1531629fcd
commit
debd840db4
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user