Start the video renderer earlier to give it time to warm up

This commit is contained in:
Cameron Gutman 2014-11-11 00:49:18 -08:00
parent 1531629fcd
commit debd840db4

View File

@ -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;