mirror of
https://github.com/moonlight-stream/moonlight-android.git
synced 2026-06-17 06:10:58 +00:00
Generate a better message when a decoder fails to initialize
This commit is contained in:
@@ -152,7 +152,7 @@ public class VideoStream {
|
|||||||
// Setup the decoder and renderer
|
// Setup the decoder and renderer
|
||||||
if (!setupDecoderRenderer(decRend, renderTarget, drFlags)) {
|
if (!setupDecoderRenderer(decRend, renderTarget, drFlags)) {
|
||||||
// Nothing to cleanup here
|
// Nothing to cleanup here
|
||||||
return false;
|
throw new IOException("Video decoder failed to initialize. Please restart your device and try again.");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Open RTP sockets and start session
|
// Open RTP sockets and start session
|
||||||
|
|||||||
Reference in New Issue
Block a user